delegate_patch
Generate a minimal unified diff from an external AI model. Provide the exact change request and context; the tool returns a proposed patch for review and application.
Instructions
Ask an external model to propose a minimal unified diff.
This tool does not apply changes. Claude must inspect, validate, apply, format, test, and review any proposed patch.
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": {
"provider": "<provider>",
"task": "<task>",
"context": "<context>"
},
"name": "delegate_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Exact change requested, constraints, and acceptance criteria. | |
| context | Yes | Files, excerpts, interfaces, and tests required to propose the patch. | |
| provider | Yes | ||
| reasoning_effort | No | ||
| max_output_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| model | Yes | ||
| status | Yes | ||
| content | No | ||
| provider | Yes | ||
| redactions | No | ||
| content_source | No | content | |
| elapsed_seconds | Yes | ||
| truncated_context | No | ||
| truncated_response | No |