`Model provided invalid arguments to read file tool.`

get a tool error

I started a new chat (agent mode) and used the gemini-2.5-pro-exp-03-25 model. After two rounds of conversation, I felt that the results of this model were not good enough, so I changed the model to claude-3.7-sonnet. After the next conversation, this error occurred

image

Version: 0.49.6 (user setup)
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T04:49:20.797Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

1 Like

Hey, usually this error appears when switching modes within a single chat. However, it seems in your case it happened due to a model switch.

I think this problem will disappear if you start a new chat with the Claude Sonnet model.

Unfortunately, if I continue the current session, the agent will try to rebuild my code, causing many new problems and even serious regressions. It is recommended that the same chat session should be prohibited from switching models. This wastes my request times.