upload_image Tool Error: Unable to access message history when using claude-code 2.0.76 with claude-in-chrome to operate browser

Resolved 💬 4 comments Opened Dec 31, 2025 by doyao Closed Feb 14, 2026

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

  1. Use claude-code 2.0.76 with claude-in-chrome integration
  2. Attempt to upload an image using the upload_image tool during browser automation
  3. 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

  1. Install claude-code version 2.0.76
  2. Install and configure claude-in-chrome extension
  3. Set up integration between claude-code and claude-in-chrome
  4. Use claude-code with claude-in-chrome to operate a browser
  5. Trigger the upload_image tool to upload an image
  6. 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_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗