Allow pasting image file paths as text instead of auto-converting to inline images
Resolved 💬 3 comments Opened Apr 19, 2026 by georgeleonardo Closed Apr 23, 2026
Description
When pasting a file path that points to an image (e.g. .png, .jpg), Claude Code automatically detects it and converts it to an inline image ([Image #1]). There's no way to paste the path as plain text.
Use case
Sometimes you just want to reference an image file path in conversation — e.g. telling Claude which file to move, rename, or use in code — without it being rendered as visual content.
Current behavior
Pasting /some/path/to/icon.png into the input automatically renders it as [Image #1] with the image displayed inline.
Expected behavior
There should be a way to paste an image path as plain text. Some ideas:
- A keyboard modifier (e.g. hold Option/Alt while pasting) to force text mode
- A toggle/setting to disable auto-detection of image paths
- Wrapping in backticks or quotes prevents auto-conversion
Environment
- CLI input
- Happens with drag-and-drop as well as pasting paths
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗