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
feat: support images in custom tool responses #9539
Custom tools (defined in .opencode/tools/) can currently only return strings. MCP tools already support returning structured content with images via { content: [{type: "image", mimeType, data}] }. This limitation prevents custom tools from returning visual data like screenshots, charts, or processed images that the LLM could analyze.
Proposed Solution
Extend the custom tool API to support the same rich content pattern as MCP tools:
Activity
github-actions commentedon Jan 20, 2026
This issue might be a duplicate of existing issues. Please check:
tool.execute.afteroutput has two different formats #2897: Tool.execute.after output has two different formats - related to standardizing structured responsestool.execute.afterhook to modify MCP tool output #3384: Allow tool.execute.after hook to modify MCP tool output - related to output handling consistencyFeel free to ignore if none of these address your specific case.
feat(plugin): support images in custom tool responses
leeweisern commentedon Jan 20, 2026
Currenty i am turning my custom tools into mcp to support images....
guilhermelowa commentedon Jan 20, 2026
It would be super helpful to have this tool!
Samraaj commentedon Feb 27, 2026
+1 i need dis
github-actions commentedon Apr 29, 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.