write_to_file
Write content to a file with options to overwrite or append, and select encoding (UTF-8, ASCII, binary, base64) for precise file management.
Instructions
Write content to a file with optional 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": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "write_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Write mode: append to existing file or overwrite | overwrite |
| content | Yes | Content to write to the file | |
| encoding | No | File encoding | utf8 |
| file_path | Yes | Path to the file to write to |