fs_write
Create, overwrite, or append UTF-8 files with atomic writes and optional SHA-256 checks. Use for safe file updates in automated workflows.
Instructions
Create, overwrite or append a UTF-8 file. Overwrites are atomic by default and can use expectedSha256 as an optimistic concurrency guard.
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": "fs_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | overwrite | |
| path | Yes | ||
| atomic | No | ||
| content | Yes | ||
| createParents | No | ||
| expectedSha256 | No |