
Returning Non-Text Content (Images and PDFs) with Claude's Tool Use
末永洸介2026.05.30
- * Claude API's tool_result can return non-text content like images and PDFs using image and document blocks
- * Multiple content types can be mixed in a single response using base64 encoding or file_id references
- * Verified that Claude accurately reads image content and PDF text through practical implementation examples