Bug Description
My instance of Claude Code is not able to use tools to read pdfs: I'll analyze these expense documents to understand the real-world structure and ensure our system captures
all necessary information. Let me review all four PDFs.
⏺ Read(../../../Downloads/05-2025 gastos.pdf)
⎿ Read PDF (132.3KB)
⏺ Read(../../../Downloads/05-2025 prorrateo.pdf)
⎿ Read PDF (173.6KB)
⏺ Read(../../../Downloads/resumen.pdf)
⎿ Read PDF (1.4MB)
⏺ Read(../../../Downloads/cupon.pdf)
⎿ Read PDF (76.7KB)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2: tool_use
ids were found without tool_result blocks immediately after: toolu_01FCH49ioQnBrfftPQx5k1ZQ,
toolu_01NeL74QdYMQm8DFGz5Pxj3A, toolu_01XirfUjk9RBjbf7UYmQEQPF. Each tool_use block must have a
corresponding tool_result block in the next message."}}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.72
- Feedback ID: 4d022565-35cf-49b6-b5b5-18c851762c62
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01FCH49ioQnBrfftPQx5k1ZQ, toolu_01NeL74QdYMQm8DFGz5Pxj3A, toolu_01XirfUjk9RBjbf7UYmQEQPF. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at Q6.generate (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n at uP.makeStatusError (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RRB.rZ1.showErrors (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-09T15:10:02.190Z"}]

Bug Description
My instance of Claude Code is not able to use tools to read pdfs: I'll analyze these expense documents to understand the real-world structure and ensure our system captures
all necessary information. Let me review all four PDFs.
⏺ Read(../../../Downloads/05-2025 gastos.pdf)
⎿ Read PDF (132.3KB)
⏺ Read(../../../Downloads/05-2025 prorrateo.pdf)
⎿ Read PDF (173.6KB)
⏺ Read(../../../Downloads/resumen.pdf)
⎿ Read PDF (1.4MB)
⏺ Read(../../../Downloads/cupon.pdf)
⎿ Read PDF (76.7KB)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2:
tool_useids were found without
tool_resultblocks immediately after: toolu_01FCH49ioQnBrfftPQx5k1ZQ,toolu_01NeL74QdYMQm8DFGz5Pxj3A, toolu_01XirfUjk9RBjbf7UYmQEQPF. Each
tool_useblock must have acorresponding
tool_resultblock in the next message."}}Environment Info
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01FCH49ioQnBrfftPQx5k1ZQ, toolu_01NeL74QdYMQm8DFGz5Pxj3A, toolu_01XirfUjk9RBjbf7UYmQEQPF. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n at Q6.generate (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n at uP.makeStatusError (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n at uP.makeRequest (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RRB.rZ1.showErrors (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n at async rZ1 (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n at async RRB (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n at async file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n at async Iq0 (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n at async P11 (file:///Users/carlosmonti/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-09T15:10:02.190Z"}]