write_file
Write text content to any file path, automatically creating parent directories and overwriting existing files by default. Use for saving notes, configs, scripts, or output.
Instructions
Write text content to a file at the given path. Creates parent directories as needed. Overwrites by default. Use for saving notes, configs, scripts, or any text output.
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 | Absolute or home-relative path where the file should be written. | |
| content | Yes | Text content to write. | |
| overwrite | No | If false, returns an error if the file already exists. Default true. |