You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:Pasted images use data: URL instead of file path, breaking MCP tools for non-vision models #14673
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
github-actions commentedon Feb 22, 2026
This issue might be a duplicate of existing issues. Please check:
data:URL scheme being used for clipboard images, causing scheme-related errors when tools expect file pathszhengwh commentedon Feb 22, 2026
os:
mac os M1
opencode desktop
fix(tui): save clipboard pasted images to temp file for MCP tools (an…
github-actions commentedon Apr 24, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.