GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]:Pasted images use data: URL instead of file path, breaking MCP tools for non-vision models · Issue #14673 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
Closed
[FEATURE]:Pasted images use data: URL instead of file path, breaking MCP tools for non-vision models#14673
Copy link
Assignees
thdxr
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Description

@zhengwh
zhengwh
opened on Feb 22, 2026
Issue body actions

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.

Reacted by Quino Terrasa and Towry Wang

Activity

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

    @github-actions
    github-actionsBot
    on Feb 22, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [FEATURE]:Clipboard image pasting not supported with GLM-4.7 model + ZAI MCP in OpenCode #7341: Clipboard image pasting not supported with GLM model + ZAI MCP in OpenCode — same combination of GLM model + MCP tool failing when images are pasted from clipboard
    • Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME) #12547: Crash on Windows when pasting images from clipboard (ERR_INVALID_URL_SCHEME) — directly related to the data: URL scheme being used for clipboard images, causing scheme-related errors when tools expect file paths
  5. zhengwh commented on Feb 22, 2026

    @zhengwh
    zhengwh
    on Feb 22, 2026
    Author
    More actions

    os:
    mac os M1
    opencode desktop

  6. mikwiseman
    added a commit that references this issue on Apr 8, 2026

    fix(tui): save clipboard pasted images to temp file for MCP tools (an…

    87c000d
  7. github-actions commented on Apr 24, 2026

    @github-actions
    github-actionsBot
    on Apr 24, 2026 – with GitHub Actions
    Contributor
    More actions

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

  8. github-actions
    closed this as completedon Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.