/paste
Pastes an image or text from the clipboard into the chat.
/paste reads the current contents of your system clipboard and inserts it as a new message into the chat โ this works with plain text as well as images. For an image, you can optionally provide a name, for example /paste screenshot.png, so it gets a meaningful name in the chat.
This is especially handy for screenshots: according to Aider's documentation on images and URLs, /paste is well suited for passing an image from the clipboard directly to vision-capable models like GPT-4o or Claude 3.7 Sonnet, for example to show an error state in the UI. Alternatively, images can also be added via /add <image-file> or as a command-line argument when starting Aider, if they already exist as a file rather than only in the clipboard.
โ WHEN TO USE IT?
Insert a screenshot as context
Copy an error message as a screenshot, then call /paste error.png so a vision-capable model like GPT-4o can see the image.
Quickly bring in copied text
Copy a long error text from another window and insert it directly as a chat message with /paste.
โ WHEN NOT TO?
Short text is simple to type
/paste is mainly intended for images; for plain short text, pasting directly into the input line is usually just as fast.
Better: Paste the text directly into the chat input line via normal copy-paste.
SOURCES
- Aider Docs โ In-chat Commands โ aider.chat
MORE COMMANDS ยท Aider