upload_image tool fails with 'Unable to access message history to retrieve image'
Resolved 💬 5 comments Opened Dec 31, 2025 by codetrout Closed Mar 1, 2026
Description
The mcp__claude-in-chrome__upload_image tool fails to retrieve previously captured screenshots, despite the functionality being designed for this purpose.
Steps to Reproduce
- Take a screenshot using the
computertool withaction: screenshot - Note the returned image ID (e.g.,
ss_63490xx7n) - Attempt to upload the screenshot using
upload_imagewith theimageIdparameter - Observe the error
Expected Behavior
The upload_image tool should retrieve the screenshot by its ID and upload it to the specified target (either via ref for file inputs or coordinate for drag-drop).
Actual Behavior
<error>Unable to access message history to retrieve image</error>
This error occurs regardless of:
- Whether using
ref(file input element reference) orcoordinate(drag-drop coordinates) - Whether uploading to the same tab or a different tab
- How quickly after the screenshot the upload is attempted
Environment
- Claude Code version: Latest (Dec 2025)
- Chrome extension: Claude in Chrome (latest)
- OS: macOS Darwin 24.6.0
Impact
This bug prevents automated saving of test screenshots. Currently only GIF recording works for persisting visual evidence, but individual screenshots cannot be downloaded or uploaded programmatically.
Workarounds
- Use GIF recording instead of screenshots
- Manually save screenshots from the conversation
---
🤖 Generated with Claude Code
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗