upload_image Tool Error: Unable to access message history when using claude-code 2.0.76 with claude-in-chrome to operate browser
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Description
When using claude-code version 2.0.76 to operate a browser with claude-in-chrome, the upload_image tool encounters an error when attempting to upload an image. The error message is: "Unable to access message history to retrieve image".
Steps to reproduce
- Use claude-code 2.0.76 with claude-in-chrome integration
- Attempt to upload an image using the
upload_imagetool during browser automation - Observe the error
Expected behavior
The upload_image tool should successfully upload images without requiring access to message history from the context where claude-code is running.
Actual behavior
The tool fails with the error: "Unable to access message history to retrieve image"
Root cause
The issue appears to be that the upload_image tool cannot access the conversation history needed to retrieve image references, likely due to a scope or context mismatch when calling the tool from claude-in-chrome through claude-code.
Environment
- Claude Code version: 2.0.76
- Integration: claude-in-chrome
- Tool affected: upload_image
What Should Happen?
The upload_image tool should successfully upload images without error messages, regardless of whether the tool is called from claude-code integrated with claude-in-chrome or from the native Claude interface.
Error Messages/Logs
Steps to Reproduce
- Install claude-code version 2.0.76
- Install and configure claude-in-chrome extension
- Set up integration between claude-code and claude-in-chrome
- Use claude-code with claude-in-chrome to operate a browser
- Trigger the upload_image tool to upload an image
- Observe the error message
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.76
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗