writeToFile
Create a new file or atomically overwrite/append to an existing file by specifying target path and content; set append or overwrite flags to control saving.
Instructions
Create a new file or atomically overwrite/append to an existing file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"targetFile": "<targetFile>",
"codeContent": "<codeContent>"
},
"name": "writeToFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| append | No | Set true to append. | |
| overwrite | No | Set true to overwrite existing file. | |
| targetFile | Yes | Path to target file. | |
| codeContent | Yes | File content to write. | |
| description | No | Summary of file creation. |