[BUG] Messages content type tool_reference not supported, causing API 400 in v2.1.69
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?
I only submitted a question, yet a bug occurred – this never happened in previous versions, but version 2.1.69 throws an error.
The question I submitted was:Help me check which other scripts have comments written in English, and add detailed Chinese comments to them. Both end users and maintainers are native Chinese speakers.
Right after that, an error was thrown, with the error message as follows:API Error: 400{"error":{"code":"InvalidParameter","message":"Theparameter messages.content.type specified in therequest are not valid: invalid value: tool_reference,supported values are: text, thinking, image,'tool_use' and tool_result. Request id:021772678016895c256f59b15888350023d38d3a642b0bfa2d673","param":"","type":"BadRequest"}}
What Should Happen?
I merely submitted a question, and a bug occurred. This never happened in previous versions, but version 2.1.69 throws an error.The question I submitted was:Help me check which other scripts have comments written in English, and add detailed Chinese comments to them. Both end users and maintainers are native Chinese speakers.
It should have helped me check the files, read through them, invoke relevant tools, and then provide a solution or resolve the issue directly.
Error Messages/Logs
API Error: 400
{"error":{"code":"InvalidParameter","message":"The
parameter `messages.content.type` specified in the
request are not valid: invalid value: `tool_reference`,
supported values are: `text`, `thinking`, `image`,
'tool_use' and `tool_result`. Request id:
021772678016895c256f59b15888350023d38d3a642b0bfa2d673",
"param":"","type":"BadRequest"}}
Steps to Reproduce
I only asked a question, and a bug appeared. This didn’t happen before; version 2.1.69 throws an error.The question I asked was: Help me check which other scripts have comments written in English, and add detailed Chinese comments. Both users and maintainers are Chinese speakers.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.68
Claude Code Version
2.1.69
Platform
Other
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗