workany icon indicating copy to clipboard operation
workany copied to clipboard

fix: pass images as multimodal content instead of file-based Read tool

Open buuzzy opened this issue 7 months ago • 0 comments

Problem: Images saved to disk → agent told to Read them → SDK Read tool returns [Image file: path (size bytes)] placeholder → model never sees the image.

Fix: Pass images directly as { type: 'image', source: { type: 'base64', ... } } content blocks. The LLM provider converts these to the appropriate API format (OpenAI image_url / Anthropic native).

Depends on open-agent-sdk#14 for OpenAI-compatible endpoints.

buuzzy avatar Apr 17 '26 01:04 buuzzy