Image Analysis Capability Limitation in Claude Code
Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 9 comments · opened Mar 25, 2025 · closed May 7, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
Why can't claude code analyze images? If i upload path it says it can't and i need to use web interface.
Environment Info
- Platform: macos
- Terminal: ghostty
- Version: 0.2.53
- Feedback ID: 6db8513c-7367-4035-91c0-7d222e9786c2
Errors
[]
9 Comments
I understand your persistence, but I still cannot view
the image content from the provided path. Despite
multiple attempts with different commands and path
formats, the Claude Code CLI environment doesn't
provide me with the capability to render or analyze
the image directly from your filesystem.
⏺ You're absolutely right. Let me try using the View
tool:
⏺ Read(file_path: "/Users
Ok, Claude Code doesn't know it as a view/read tool.
Maybe update Claude Code to recognize how to use view tool.
@omararambula Can you give a screenshot or an example of how you were prompting Claude Code? I'm having trouble reproducing the issue.
Bash(ls -la ~/Desktop/"Screenshot 2025-03-25 at 12.01.21.png")…
⎿ -rw-r--r--@ 1 omar staff 1837131 Mar 25 12:01
/Users/omar/Desktop/Screenshot 2025-03-25 at 12.01.21.png
⏺ Now that I've located your most recent screenshot, what specific
question do you have about it? Would you like me to explain how....
⏺ I can't actually see the image content. While I can confirm the
file exists on your desktop (the Screenshot 2025-03-25 at
12.01.21.png file that's 1.8MB in size), I don't have the ability
to view the contents of image files through the command line
tools available to me.
To discuss your screenshot, you would need to either:
interface)
content
I'd be happy to continue our discussion about implementing
X
understand what specific aspect you're asking about.
⏺ You're right, Claude is multimodal and can see images when
they're directly uploaded to the conversation. However, in this
CLI (command line interface) environment of Claude Code, I don't
have the ability to render or view image files that exist on your
local filesystem.
I can see that the file exists by checking the file information
(filename, size, date), but I can't access the actual image data
or render the picture from your local filesystem just by running
commands.
To share the image with me, you would need to:
or app interface
to use a different way to share the image
If you're using Claude through a web interface where direct image
uploads are supported, you can simply attach the screenshot to
your next message.
⏺ Yes, that's correct. Since I'm running in Claude Code CLI, I
don't have the ability to view images directly from your
filesystem. In this CLI environment, I can only:
I can't render or display image files from your local filesystem,
even though they exist. Claude is multimodal in its web
interface, but the CLI version doesn't support displaying images
from the filesystem directly.
If you'd like to discuss something specific about your canvas
application based on the screenshot, please describe what you're
seeing and what aspect you're asking about.
There are three ways to share images with Claude
Code[(1)](https://docs.anthropic.com/en/docs/agents-and-tools/cla
ude-code/tutorials#work-with-images):
window[(1)](https://docs.anthropic.com/en/docs/agents-and-tools/c
laude-code/tutorials#work-with-images)
CLI[(1)](https://docs.anthropic.com/en/docs/agents-and-tools/clau
de-code/tutorials#work-with-images)
agents-and-tools/claude-code/tutorials#work-with-images)
You can use this command format to analyze an image by
path[(1)](https://docs.anthropic.com/en/docs/agents-and-tools/cla
ude-code/tutorials#work-with-images):
``
plaintext
``claude "Analyze this image: /path/to/your/image.png"
After sharing an image, you can ask Claude
to[(1)](https://docs.anthropic.com/en/docs/agents-and-tools/claud
e-code/tutorials#work-with-images):
The tool works with various image types including diagrams,
screenshots, mockups and UI
designs[(1)](https://docs.anthropic.com/en/docs/agents-and-tools/
claude-code/tutorials#work-with-images).
⏺ You're right, thank you for sharing this information. You can
indeed share images with me in Claude Code CLI in those three
ways. Since we have the path to your screenshot, you can send a
new message with something like:
Analyze this image: ~/Desktop/Screenshot 2025-03-25 at
12.01.21.png
This would allow me to see and analyze the screenshot you're
referring to. Once I can see it, I'll be able to provide more
specific feedback related to your canvas app architecture and the
Figma-like frame handling you're looking to implement.
⏺ I don't see any image in your message. To share your image with
me, please try one of these approaches:
Analyze this image: ~/Desktop/Screenshot 2025-03-25 at
12.01.21.png
Once I can see the image, I'll be able to provide more specific
help with your canvas app architecture.
⏺ You're right, I can try to analyze the image path I already
identified:
⏺ Bash(cat ~/Desktop/"Screenshot 2025-03-25 at 12.01.21.png" | hea…
-c 100 | xxd)
⎿ 00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452
.PNG........IHDR
00000010: 0000 079e 0000 0700 0806 0000 0008 75ef
..............u.
00000020: 4500 000a b669 4343 5049 4343 2050 726f E....iCCPICC
Pro
00000030: 6669 6c65 0000 4889 9597 0754 53e9 1280
file..H....TS...
00000040: ff7b 6f3a 0904 0211 9012 7a13 a413 404a
.{o:......z...@J
00000050: 082d 74e9 202a 2109 1008 3186 0415 bbb2 .-t.
*!...1.....
00000060: b882 6b41 ..kA
⏺ I can confirm this is a PNG image file, but I cannot display or
render the image content directly through the CLI. The tools
available to me in this environment don't allow me to process
image data in a way that would let me see what's in the
screenshot.
To properly analyze the image, you would need to use one of the
methods I mentioned earlier, which involve either:
is supported
discussion
I apologize for the limitation. If you can describe what's shown
in the screenshot, I'd be happy to continue our discussion about
the x
⏺ You're right to be frustrated. There seems to be a disconnect
between expectations and capabilities here.
Claude Code CLI is designed to work with code and text files
primarily. While Claude itself (the AI) has multimodal
capabilities, the specific implementation in this CLI tool
appears to have limitations when it comes to directly viewing and
analyzing images from the filesystem.
The documentation you referenced suggests that image analysis
should be possible, but the actual implementation might:
we've tried
For clarity: I, the AI, can analyze images when they're properly
presented to me, but the Claude Code CLI interface we're
currently using doesn't seem to be giving me access to the image
data in a way I can process.
Your options are to:
discussion
supported
documentation implies this should work
⏺ I understand your frustration, but unfortunately I still can't
view the image content even with the direct path. While I can
verify the file exists, the Claude Code CLI environment doesn't
provide me with the capability to render or view the image data.
The issue seems to be the image path containing spaces, try renaming the screenshot.
This is fixed in newer versions. https://docs.anthropic.com/en/docs/claude-code/tutorials#work-with-images
This does not appear to be fixed for me. Version:
1.0.16 (Claude Code)It seems to consistently work (and get around this bug), at least for us, when we copy the entire path name and paste into the claude terminal. The terminal shows "
[Image #1]" for example and works. It needs to be the full path, not relative.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.