[Bug] Anthropic API Error: Image exceeds 5 MB maximum in tool result
Resolved 💬 3 comments Opened Dec 8, 2025 by inakifernandezkavak Closed Dec 12, 2025
Bug Description
it is working on the to-do but is bugged, since the tool has this error message: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.34.content.2.tool_result.content.0.image.source.base64: image exceeds 5 MB maximum: 5404560 bytes > 5242880
bytes"},"request_id":"req_011CVuMv91szCHcttG9Go9S2"}. I need to update the todo list
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.53
- Feedback ID:
Errors
[{"error":"Error\n at NU (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10054)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:03:28.066Z"},{"error":"Error: Could not load the \"sharp\" module using the darwin-arm64 runtime\nPossible solutions:\n- Ensure optional dependencies can be installed:\n npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n npm install --os=darwin --cpu=arm64 sharp\n- Consult the installation documentation:\n See https://sharp.pixelplumbing.com/install\n at <anonymous> (/$bunfs/root/claude:859:36629)\n at <anonymous> (/$bunfs/root/claude:11:356)\n at <anonymous> (/$bunfs/root/claude:860:88)\n at <anonymous> (/$bunfs/root/claude:11:356)\n at <anonymous> (/$bunfs/root/claude:860:79804)\n at <anonymous> (/$bunfs/root/claude:11:356)\n at <anonymous> (/$bunfs/root/claude:860:79980)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:47.185Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n at DGR (/$bunfs/root/claude:860:80003)\n at async ME8 (/$bunfs/root/claude:1450:41902)\n at async pAA (/$bunfs/root/claude:1450:42120)\n at async call (/$bunfs/root/claude:1459:389)\n at async lt8 (/$bunfs/root/claude:2164:20837)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:47.186Z"},{"error":"MaxFileReadTokenExceededError: File content (127436 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at GrB (/$bunfs/root/claude:1450:40997)\n at async call (/$bunfs/root/claude:1459:972)\n at async lt8 (/$bunfs/root/claude:2164:20837)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:47.462Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n at DGR (/$bunfs/root/claude:860:80003)\n at async ME8 (/$bunfs/root/claude:1450:41902)\n at async pAA (/$bunfs/root/claude:1450:42120)\n at async call (/$bunfs/root/claude:1459:389)\n at async lt8 (/$bunfs/root/claude:2164:20837)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:58.538Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n at DGR (/$bunfs/root/claude:860:80003)\n at async ME8 (/$bunfs/root/claude:1450:41902)\n at async pAA (/$bunfs/root/claude:1450:42120)\n at async call (/$bunfs/root/claude:1459:389)\n at async lt8 (/$bunfs/root/claude:2164:20837)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:58.538Z"},{"error":"TypeError: G is not a function. (In 'G(R)', 'G' is an instance of Object)\n at os (/$bunfs/root/claude:860:81025)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:58.539Z"},{"error":"TypeError: G is not a function. (In 'G(R)', 'G' is an instance of Object)\n at os (/$bunfs/root/claude:860:81025)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:08:58.539Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n at DGR (/$bunfs/root/claude:860:80003)\n at async ME8 (/$bunfs/root/claude:1450:41902)\n at async pAA (/$bunfs/root/claude:1450:42120)\n at async call (/$bunfs/root/claude:1459:389)\n at async lt8 (/$bunfs/root/claude:2164:20837)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-08T14:10:02.359Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n at DGR (/$bunfs/root/claude:860:
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗