edit
Replaces exact UTF-8 text in an existing file within a declared scope, using a stable operation ID and optional SHA-256 verification.
Instructions
Apply an exact UTF-8 text replacement to an existing file within declared scope using a stable operation_id and optional expected_sha256 check.
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": {
"context_id": "<context_id>",
"operation_id": "<operation_id>",
"path": "<path>",
"old_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| context_id | Yes | ||
| new_string | Yes | ||
| old_string | Yes | ||
| replace_all | No | ||
| operation_id | Yes | ||
| expected_sha256 | No |