github / github/copilot-cli

Support pasting images from clipboard into the conversation

Aberta
#2,675 2 comentários 7 reações 0 responsáveis Ver no GitHub
area:input-keyboard
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### Describe the feature or problem you'd like to solve

Support pasting images from clipboard into the conversation

### Proposed solution

### Describe the feature or problem you'd like to solve

Support pasting images from clipboard into the conversation

### Proposed solution

Allow users to paste images (e.g., screenshots) directly into the CLI input using Ctrl+V / Cmd+V. The image would be sent as a vision-capable attachment to the model, similar to how @
mentions include file contents. The CLI could display a small inline preview or placeholder like [📷 Image pasted from clipboard] before sending. For terminals that don't support inline images, just
showing the placeholder text is fine — the image data would still be sent to the model.

### Example prompts or workflows

1. User takes a screenshot of a UI bug → pastes into CLI → asks "What's wrong with this layout?" — the model analyzes the screenshot and suggests CSS/HTML fixes.
2. User pastes a screenshot of an error dialog from a mobile emulator → asks "Fix this error" — no need to manually transcribe the error message.
3. User pastes a design mockup → asks "Implement this component using Tailwind CSS" — the model generates code matching the visual reference.
4. User pastes a screenshot of terminal output that's hard to copy as text (e.g., from a remote machine or a Docker log viewer) → asks "What does this error mean?"

### Additional context

Currently, sharing visual context requires either taking a screenshot via Chrome DevTools integration (only works for browser pages) or saving an image to a file and referencing it with
@. Clipboard pasting is a much faster workflow — especially for UI/UX work, debugging visual issues, or when the user wants to show something from outside the terminal (design tools, browser, mobile
emulators). Most AI chat interfaces (ChatGPT, Claude web) already support this, and bringing it to the CLI would significantly reduce friction for visual debugging workflows.

Reopening the issue @examon @andyfeller https://github.com/github/copilot-cli/issues/2409

As I explained there, the current behavior for Mac, at least, using the screenshot tool (command+shift+4) and copying to clipboard and pasting in the CLI does not work.

### Example prompts or workflows

_No response_

### Additional context

_No response_

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece rastreando o caminho de entrada da CLI e o fluxo existente de anexação de arquivos por @-mention, que a issue identifica como a comparação mais próxima. Defina a conclusão como aceitar dados de imagem por Ctrl+V/Cmd+V, enviá-los como um anexo compatível com vision e mostrar um placeholder quando o terminal não puder exibir imagens inline.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
shell
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.