Write a file
herdr_file_writeWrite a complete file locally or on another machine, create missing folders, and replace content atomically so readers never see partial writes.
Instructions
Write a whole file here or on another machine, making missing folders. Atomic: a reader sees old or new, never half.
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>",
"text": "<text>"
},
"name": "herdr_file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Another machine (see herdr_machines); default: this one. | |
| cwd | No | Working directory. Default: the core's; on another machine, its home. | |
| path | Yes | Absolute, or from cwd. | |
| text | Yes | Its new content. |