Tool call arguments for read_file were invalid: Model provided invalid arguments for tool call.
Steps to Reproduce
Load a background agent into chat history, checkout the branch. Send a new message to the agent (auto model): Tool call arguments for read_file were invalid: Model provided invalid arguments for tool call.
(Request ID: b8aea25b-9728-42d3-bc46-d9e8a720a5dd)
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
+1. The model does not make a difference, mcp tools do not make a difference.. it happens just when I open a background agent created from slack that I opened up in cursor locally. Then I try to send a message and get the same error
I have the same issue Request ID: 33161673-43ab-4a74-9a96-c8b19e379779
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Tool call error”,“detail”:“Tool call arguments for read_file were invalid: Model provided invalid arguments for tool call.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [invalid_argument] Error
at xyl.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4910:338991)
at Qvr._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:36019)
at Qvr._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:35761)
at Qvr._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:34526)
at Qvr._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:33348)
at BCt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:31442)
at ye._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ye.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Wot.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4895:12154)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7028:18292)
Tool call arguments for read_file were invalid: Unexpected parameters provided:
I have tried restarting, both computer and IDE - same error.
I tried changing the agent - same error.
I tried giving it a new prompt - same error.
I tried network diagnosis - all good. same error on prompt
This has completely stopped me from getting work done and I’m really hoping someone has a solution. It’s been 90 minutes of the same message over and over.
same here, just updated cursor and now I get this:
Tool call arguments for read_file were invalid: Unexpected parameters provided: should_read_entire_file, start_line_one_indexed, end_line_one_indexed. Expected parameters: { target_file: string (required), offset?: number, limit?: number }