Write File Text
write_file_textWrites text content to a specified file, creating missing parent directories by default; set append to add to existing content instead of overwriting.
Instructions
Write text to a file. Creates parent dirs by default.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| append | No | append instead of overwriting | |
| content | Yes | ||
| create_dirs | No | create missing parent directories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |