fs_write
Write a single file in the workspace with optional hash precondition to prevent stale overwrites. Mutates exactly one file for safe, bounded edits.
Instructions
Write a single file within the workspace (stale-safe). Mutates exactly one 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": "fs_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| expected_hash | No |