Skip to content

opus not able to read images with read tool #5056

Closed

Description

@SirStisx

Description

When told to read a spesific image file the Read tool says "Failed to read image: /tmp/SPA-2358-image-1.png, model may not be able to read images" using opus 4.5

pasting same image to chat or dragging it into chat works.

OpenCode version

132

Steps to reproduce

  1. have a image in a folder /tmp on mac in this case
  2. tell the model to read that image with the read tool.

Screenshot and/or share link

No response

Operating System

No response

Terminal

ghosty

Activity

  1. modelnova-ai commented on Dec 4, 2025

    @modelnova-ai

    Description

    When told to read a spesific image file the Read tool says "Failed to read image: /tmp/SPA-2358-image-1.png, model may not be able to read images" using opus 4.5

    pasting same image to chat or dragging it into chat works.

    OpenCode version

    132

    Steps to reproduce

    1. have a image in a folder /tmp on mac in this case
    2. tell the model to read that image with the read tool.

    Screenshot and/or share link

    No response

    Operating System

    No response

    Terminal

    ghosty

    If you use a custom model provider, you need to add the image modalities in your config. Otherwise the Read tool cannot read images.

    "models": {
      "claude-opus-4.5": {
        "id": "claude-opus-4.5",
        "modalities": {
          "input": ["text", "image"],
          "output": ["text", "image"]
        }
      }
    }
    

    After adding this, image reading will work.

  2. self-assigned this
    on Dec 4, 2025
  3. rekram1-node commented on Dec 4, 2025

    @rekram1-node
    Contributor

    fixed in next release, there was a regression going to add more tests:
    350a322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions