Where does the bug appear (feature/product)?
BugBot
Describe the Bug
Where does the bug appear?
Cursor IDE – Agent mode with Claude models
Describe the Bug
When using Claude models (claude-sonnet / claude-opus) in Agent mode, every request fails with the following error:
Failed to deserialize the JSON body into the target type: tools[0]: missing field `type`
Other models (GPT-5.5, Gemini, etc.) work fine in the same setup. Only Claude models are affected.
Root Cause (suspected)
Cursor is sending tool definitions to the Anthropic API in an outdated format that is missing the required type field. Anthropic’s API now requires each tool object to include "type": "custom". Other providers use the OpenAI tool format, which Cursor handles correctly.
Steps to Reproduce
- Open Cursor with latest version
- Set model to any Claude model (sonnet / opus)
- Use Agent mode with any prompt that triggers tool use
- Error appears immediately
Expected Behavior
Claude models should work in Agent mode the same way other models do.
Request IDs
- 77c80736-bab1-4860-a29d-22cf4d4fc882
- 77145b7d-bbf8-45fd-9fdd-a23e50e2921d
- 8092f759-5f03-4296-a3f7-c31df2109041
OS: Windows
Cursor Version: Latest
Steps to Reproduce
As mentioned above
Expected Behavior
As mentioned above
Operating System
Windows 10/11
Version Information
Version: 3.6.21 (user setup)
VS Code Extension API: 1.105.1
Commit: e7a7e93f4d75f8272503ecf33cedbaae10114a10
Date: 2026-05-28T21:45:36.072Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.220
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
As mentioned above
For AI issues: add Request ID with privacy disabled
As mentioned above
Additional Information
As mentioned above
Does this stop you from using Cursor
No - Cursor works, but with this issue