request_source_patch_dev
Propose a DEV-only literal source patch for review in the local Owner GUI: show full content and diff, verify the SHA-256, and replace one exact anchor only after approval.
Instructions
DEV_ONLY cooperative literal source patch: reuse preview_source_patch, show the complete proposed content and diff to local Owner GUI, then recheck SHA before replacement. One exact anchor only; no fuzzy edit, job spawn or protected Broker acceptance. Never retry an UNKNOWN result.
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>",
"old_text": "<old_text>",
"new_text": "<new_text>",
"expected_sha256": "<expected_sha256>"
},
"name": "request_source_patch_dev"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute existing source file within configured Owner roots; DEV_ONLY, never a protected Broker permission. | |
| new_text | Yes | Literal replacement up to 4096 UTF-8 bytes; may contain secrets. Full proposed source is shown to local Owner before writing. | |
| old_text | Yes | Exact literal anchor, one occurrence only, up to 4096 UTF-8 bytes; may contain secrets, avoid submitting them. | |
| expected_sha256 | Yes | Required lowercase SHA-256 of inspected current source; reverified after Owner review and immediately before replacement. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||