Write file
files_write_fileWrites text content to a file, overwriting or appending. Creates parent folders automatically and requires explicit confirmation.
Instructions
Writes text to a file. mode='overwrite' replaces the whole file (creating it if missing); mode='append' adds to the end. Requires confirm='EXECUTE'. Creates the parent folder if missing. path and content are separate arguments (not one dict like db_execute's params) so a for_each step can omit item_arg and spread a list of {"path": ..., "content": ...} dicts directly as calls to this.
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>",
"confirm": "<confirm>"
},
"name": "files_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | overwrite | |
| path | Yes | ||
| confirm | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||