Edit commander file
exza_edit_commander_fileReplace one exact text span in an authorized source file guarded by expectedSha256. Unlike exza_append_commander_file this modifies existing text rather than adding at end. Requires account-bound computer:write OAuth and any prompted local owner approval.
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>",
"oldText": "<oldText>",
"newText": "<newText>",
"expectedSha256": "<expectedSha256>"
},
"name": "exza_edit_commander_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Explicit path inside the scope for this tool; no symlink traversal where prohibited. | |
| newText | Yes | Replacement text for the exact matching span. | |
| oldText | Yes | Text span that must occur uniquely before a guarded edit. | |
| expectedSha256 | Yes | Lowercase SHA-256 from the prior read; prevents overwriting changed content. |