claude-code - 💡(How to fix) Fix Support image viewing capability (view_image tool) like GitHub Copilot

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

Problem Statement

Problem

When using Claude Code in VS Code, users often need to analyze or describe images (screenshots, diagrams, UI mockups, etc.) during development. Currently, Claude Code lacks a built-in tool to read and interpret image files.

GitHub Copilot has a powerful built-in view_image tool that allows the assistant to read PNG/JPG/GIF/WebP images and describe their contents. This is extremely useful for:

  • Analyzing UI/UX screenshots
  • Reading diagrams and architecture drawings
  • Debugging visual issues
  • Understanding test output screenshots

Feature Request

Add a view_image (or similar) tool that Claude Code can invoke to read image files and provide their content/description to the language model.

Proposed Solution

Suggested Implementation

Following VS Code's Language Model Tools API (vscode.lm.registerTool), the tool could:

  1. Accept a file path as input
  2. Read the image file using vscode.workspace.fs.readFile()
  3. Convert the image to a format compatible with the underlying model (e.g., base64)
  4. Return the image data as a tool result

The tool declaration in package.json would use the languageModelTools contribution point.

References

  • GitHub Copilot's view_image tool in VS Code provides this exact functionality
  • VS Code LM Tool API: vscode.lm.registerTool()

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING