Write File
write_fileWrite text content to a file, choosing atomic replace or append mode to safely update project files.
Instructions
Write content to a file with atomic commit or append mode.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative or absolute path to the file. | |
| append | No | If True, appends to the file instead of overwriting. | |
| atomic | No | If True, writes to a temp file and replaces atomically. | |
| content | Yes | The text content to write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |