propose_patch
Generate a unified diff for proposed file changes without altering files, returning a proposal ID and patch hash for later approval and application.
Instructions
Generate a unified diff without modifying files and register a short-lived patch proposal. The returned proposalId/patchHash can be used by apply_approved_patch in patch write mode.
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": {
"root": "<root>",
"changes": "<changes>"
},
"name": "propose_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute configured allowed root. | |
| changes | Yes |