fs_patch
Apply a stale-safe hashline patch to exactly one file, replacing old hunks with new content and using an optional expected hash to avoid conflicts.
Instructions
Apply a hashline-style single-file patch (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>",
"patch": "<patch>"
},
"name": "fs_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| patch | Yes | ||
| expected_hash | No |