write
Atomically saves UTF-8 content to a scoped file using a stable operation ID for deduplication and an optional SHA-256 check to prevent conflicts.
Instructions
Atomically write a UTF-8 file within declared scope using a stable operation_id for durable deduplication and optional expected_sha256 conflict protection.
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": {
"context_id": "<context_id>",
"operation_id": "<operation_id>",
"path": "<path>",
"content": "<content>"
},
"name": "write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| context_id | Yes | ||
| create_only | No | ||
| operation_id | Yes | ||
| mkdir_parents | No | ||
| expected_sha256 | No |