continue
continue copied to clipboard
The creatNewFile tool failed to generate a JSON file
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: mac os 26.0.1
- Continue version:1.2.11
- IDE version: Cursor 2.2.33
- Model:azure/gpt5
Description
When creating a JSON file, the model returns an object. An error occurred during string parameter validation, causing the JSON file creation to fail.
To reproduce
No response
Log output
Related issues:
- #8510 - Continue keeps sending json object as string as opposed to json.stringify() as parameter to mcp tools
- #8764 - Can't create files (filepath argument validation error)
- #8388 - Can't create files and hangs a lot and errors
- #8003 - Create File Fails and Loops when MaxTokens is reached
- #9045 - Code writing to file failed
These issues all involve problems with the create_new_file tool, particularly around parameter validation when the model passes JSON objects instead of stringified content.