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

  1. Take a screenshot using the computer tool with action: screenshot
  2. Note the returned image ID (e.g., ss_63490xx7n)
  3. Attempt to upload the screenshot using upload_image with the imageId parameter
  4. 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) or coordinate (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

View original on GitHub ↗

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