Skip to content

[Bug] look_at tool cannot read image files - "this model does not support image input" even with vision-capable model #16184

Closed

Description

@Ryker0716

Bug Description

The look_at tool fails to analyze image files from disk, returning error "Cannot read image (this model does not support image input)" even though the model supports multimodal vision capabilities.

Steps to Reproduce

  1. Start OpenCode with vision-capable model (qwen3.5-397b or similar)
  2. Call look_at tool with image file path:
    look_at(file_path="/Users/myname/Desktop/ScreenShot_2026-03-05_215547_277.png", goal="Analyze this screenshot")
  3. Observe error: "Cannot read [filename] (this model does not support image input)"

Expected Behavior

The image should be passed to the vision-capable model for analysis via the look_at tool.

Actual Behavior

  • look_at tool fails with "model does not support image input" error
  • Model never receives the image data
  • However, pasting/dragging the same image directly into chat works perfectly

Environment

  • OpenCode version: [请运行 opencode --version 获取版本号]
  • OS: macOS
  • Model: qwen3.5-397b (vision-capable)

Related Issues

Additional Context

This appears to be a core issue with the tool chain failing to convert image files into proper visual input format for vision-capable models. Pasted images work fine, but file-based image reading fails.
opencode --version
1.2.17

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 5, 2026
  2. github-actions commented on Mar 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct from the above, please add a comment explaining how it differs.

  3. mtomas7 commented on Mar 10, 2026

    @mtomas7

    @Ryker0716 I am trying to resolve a similar issue with new Qwen3.5 model with Vision, but as per OpenCode docs there is not such look_at tool. Is this a custom-built tool?

  4. Ryker0716 commented on Mar 10, 2026

    @Ryker0716
    Author

    The problem occurred because I used the oh-my-opencode plugin. It works normally after disabling the plugin.

  5. mtomas7 commented on Mar 10, 2026

    @mtomas7

    Please see if this config tip will help: #15728 (comment)

  6. added 8 commits that reference this issue on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions