write_file
Write content to a file, automatically creating parent directories if needed. Optionally append instead of overwrite.
Instructions
Write content to a file. Creates parent directories if needed.
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 | File path (relative to home or absolute) | |
| append | No | If true, append instead of overwrite (default: false) | |
| content | Yes | The content to write |