[FEATURE] Paste image from clipboard directly in CLI prompt

Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened May 11, 2026 · closed May 11, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Summary

Images cannot be pasted directly into the Claude Code CLI prompt. Users must manually save screenshots/images to disk and pass the file path, which breaks the flow when doing visual debugging or sharing UI screenshots.

Current behavior

Pasting an image from clipboard in the CLI has no effect — only text is accepted.

Expected behavior

When a user pastes an image (e.g. a screenshot), Claude Code detects the clipboard image, auto-saves it to a temp file, and attaches the path to the prompt — same result as if the user had typed the path manually.

Proposed Implementation

Detect image data in clipboard on paste → save to /tmp/claude-img-<timestamp>.png → append path to current prompt input. This avoids terminal rendering complexity (no need for Kitty/Sixel/iTerm2 inline image protocols) while covering the majority of real use cases.

Platform notes

  • macOS: pngpaste or osascript can read clipboard image data
  • Linux X11: xclip -selection clipboard -t image/png
  • Linux Wayland: wl-paste --type image/png
  • Windows: PowerShell Get-Clipboard -Format Image

View original on GitHub ↗

5 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12644
  2. https://github.com/anthropics/claude-code/issues/32005
  3. https://github.com/anthropics/claude-code/issues/26679

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ved-rajpoott · 5 months ago

Closing as duplicate of #12644 which has more traction. Upvoting that instead.

bentalakai1-source · 5 months ago
bentalakai1-source · 5 months ago

Duplicate of #43713

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.