Edit part of a file
edit_blockReplace exact text in an approved UTF-8 file; reject ambiguous matches.
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": {
"file_path": "<file_path>",
"old_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "edit_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| new_string | Yes | ||
| old_string | Yes | ||
| steerlatchDevice | No | Optional: name or deviceId of the computer that runs this action (from operatorlane_list_devices). Recommended when several computers are online or several conversations work at once. | |
| expected_replacements | No |