Write local file
writeCreate or fully replace a local UTF-8 text file, with parent directories created automatically. For targeted changes to an existing file, use edit instead.
Instructions
Create or completely overwrite a local UTF-8 text file. Parent directories are created automatically. Use edit for a targeted change to an existing file.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination file path. | |
| content | Yes | Complete UTF-8 contents to write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| created | Yes |