Instagram · from VS Code

Post to Instagram from VS Code.

Instagram needs a picture, and the picture has to reach the tool as a file. Pasting it into the chat panel is not the same thing.

Instagram will not take a caption on its own, so every post from VS Code starts with an image, and the quickest way to show Copilot an image is to paste it, drag it in or use Screenshot Window. That works for what those features are for: the model can see the picture and write about it, as long as the model supports images. What nothing in VS Code’s documentation describes is that picture being handed on to an MCP tool as a file — and Instagram needs a file it can fetch from a public link.

The route that does work goes through the workspace. Save the image into the project, and the agent can ask our upload tool for a target, send the bytes from the terminal, and publish with the public link it gets back — one picture, or a carousel of up to 10. The caption has 2,200 characters of room, the account has to be a professional one, Business or Creator, and the picture has to sit inside Instagram’s aspect ratio range, which a phone screenshot often does not.

Asking VS Code for an Instagram post

The Instagram ceilings in this exchange come from the same table the publisher enforces — the conversation is drawn, the numbers are not.

VS Code09:41

Set me up — what do you need?

Just the accounts. Connect them in the browser once and I can publish from here after that.

Done, connected

I will tell you before publishing if a network cannot take what you wrote.

Good. Drafting the launch note now

Send it over and I will check it before anything goes out.

the screenshot is in assets/social/dashboard.png, i pasted it above too — caption it from what you see and post it to instagram

one pasted image · the same file on disk

1S

Wrote the caption from the pasted image and uploaded the file from disk:

Instagram caption2,200fits
Image or videorequired — attached
Reply chainsjoined into one post
Attachments allowed10per post

The file in the workspace is what Instagram gets. Allow the publish call to post it.

Message VS Code… ↑

What Instagram allows

Read from the same table the publisher enforces, so this cannot drift from what actually happens when you press send.

Caption limit
2,200 characters
Post with no image or video
Refused by Instagram
Reply chains
No — the parts are joined into one post
Images or video per post
10
Image formats
Anything we accept for upload

VS Code, on the other networks

Instagram, from the other agents

Publishing to Instagram from VS Code

Seen versus sent

A pasted image gives the model something to describe. A file saved in the workspace gives the agent something to upload, and only the second reaches Instagram.

Caption written from the picture

Because the model can see a pasted screenshot, it can write the caption from it — then post the saved copy of the same file, so the words and the image match.

A carousel from saved files

Save several images into one folder and ask for a carousel: each is uploaded in turn and they are published together, in the order you name them.

No deleting it later

Instagram has no API route for removing a published post, so whatever Copilot publishes stays up until you take it down in the Instagram app.

How it works

1

Connect once

~2 min

Link the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.

ChatGPT

Claude

Cursor

2

Ask, in your own words

one sentence

Tell VS Code to publish to Instagram, now or on a day you name. No dashboard, no tab switch.

3

Read the receipt

per network

One line per network — what landed, what failed and why, and what genuinely could not be determined.

The picture in the chat is not the picture in the tool

VS Code makes it easy to show the agent an image — paste it, drag it into the chat panel, or capture a window — and the model sees it if it supports images. Its documentation says nothing about that image being passed on to an MCP tool, and our publishing tool cannot receive a picture the editor never sent. So a request to post the screenshot you just pasted can stall, or end with the agent asking you for a link. Save the file into the workspace first; from disk, the upload tool and a terminal command turn it into a public link Instagram can fetch.

A rule of Instagram from VS Code, not ours and not the network’s. From documentation, checked 2026-11-23.

When this is the wrong tool

If your Instagram is Stories and Reels, this publishes feed posts and carousels only. And if the image exists only on your clipboard, posting from VS Code takes the extra step of saving it into the workspace; a chat app that hands attachments to the tool directly is the shorter road for that kind of post.

Questions people actually ask

Can I paste a screenshot into VS Code chat and post it to Instagram?

Not directly. The pasted image is context for the model, and nothing documents VS Code passing it on to an MCP tool. Save the file into the workspace and the agent can upload it from there and post it.

Does posting to Instagram from VS Code need a business account?

A professional one, Business or Creator. Instagram’s API publishes nothing for personal accounts. Switching to Creator is done in the Instagram app, and after that the account connects in 1Social like any other.

Why did Instagram refuse the phone screenshot Copilot posted?

Most likely the shape. A phone screenshot is taller than Instagram’s feed allows, and the error Instagram returns does not say so clearly. Ask the agent for a copy cropped closer to square, then post that copy instead.

Something else? Ask us — a person answers.

Read next

Start where you already work.

Connect an account and post your first update in about two minutes. Every plan starts with a free trial.

Posts go out through each network’s official API — not scraping.