repo.apply_patch
Apply unified diff patches to local repositories with validation, sandbox enforcement, and rollback on failure.
Instructions
Apply a unified diff patch with validation, sandbox enforcement, and rollback
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": {
"patch": "<patch>"
},
"name": "repo.apply_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | Unified diff patch string | |
| dry_run | No | Validate only without writing (default false) |