[BUG] API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"{\"message\":\"messages.3.content.0.tool_result.content.0.type: Field required\"}"},

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Mar 5, 2026 · closed Mar 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

After upgrade to latest Claude Code, I can't use any commands of Claude Code, It shows API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"{\"message\":\"messages.3.content.0.tool_result.content.0.type: Field required\"}"},"

What Should Happen?

If I downgrade to v2.1.63, it turns right

Error Messages/Logs

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"{\"message\":\"messages.3.content.0.tool_result.content.0.type: Field required\"}"},"

Steps to Reproduce

  1. claude command
  2. /init
  3. it turns error

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.1.69

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] · 7 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/30995

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

stephenzhang0713 · 7 months ago
github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.