Edit file in several places
file_multi_replaceApply exact, unique old_str → new_str replacements to one file, in order. No prior read is required.
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>",
"explanation": "<explanation>",
"account": "<account>"
},
"name": "file_multi_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| edits | Yes | ||
| account | Yes | Account (app) UUID; call account_list to find it | |
| filesystem | No | source | |
| explanation | Yes | Why you are making this call, in one sentence for the user. |