file_write
Write content to a text file, creating parent directories automatically. Optionally overwrite existing files.
Instructions
Write content to a text file. Creates parent directories if needed. Set overwrite to true to replace existing files.
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": "file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to the file to write | |
| content | Yes | Content to write to the file | |
| overwrite | No | Whether to overwrite an existing file (default: false) |