fs_patch
Apply exact text replacements to a file in memory, validate expected match counts, then write atomically to prevent partial updates.
Instructions
Apply one or more exact text replacements to a file in memory, validate expected match counts, then write once atomically.
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>",
"edits": "<edits>"
},
"name": "fs_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| edits | Yes | ||
| expectedSha256 | No |