layerfs_fs_edit
Replace exactly one matching text occurrence in a branch and checkpoint; refuses edits when zero or multiple matches are found.
Instructions
Replace exactly one occurrence on a branch and checkpoint. Zero or multiple matches are refused.
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": {
"branch": "<branch>",
"path": "<path>",
"oldText": "<oldText>",
"newText": "<newText>"
},
"name": "layerfs_fs_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | Yes | ||
| message | No | ||
| newText | Yes | ||
| oldText | Yes |