Skip to content

[FEATURE]:Pasted images use data: URL instead of file path, breaking MCP tools for non-vision models #14673

Closed

Description

@zhengwh

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem

When pasting an image from clipboard, OpenCode stores it as a data: URL (base64).
This works for vision models (GLM-4.6V), but non-vision models (GLM-5) need to
call MCP tools (look_at, understand_image) which expect file paths, not data URLs.

Expected Behavior

Pasted images should be saved to a temp file, and the url field should contain
the file path so MCP tools can access them.

Workaround

Use @filename to reference files already in the working directory.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 22, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 22, 2026
  3. github-actions commented on Feb 22, 2026

    @github-actions
    Contributor

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

  4. zhengwh commented on Feb 22, 2026

    @zhengwh
    Author

    os:
    mac os M1
    opencode desktop

  5. github-actions commented on Apr 24, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions