workany
workany copied to clipboard
fix: pass images as multimodal content instead of file-based Read tool
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.