continue icon indicating copy to clipboard operation
continue copied to clipboard

The creatNewFile tool failed to generate a JSON file

Open li1615882553 opened this issue 11 months ago • 1 comments

Before submitting your bug report

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. Image

To reproduce

No response

Log output


li1615882553 avatar Dec 18 '25 14:12 li1615882553

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.

continue avatar Dec 18 '25 14:12 continue