text_apply_diff
Apply a unified diff STRICTLY: every context and deletion line must match its documented position; mismatches name the hunk and line — no fuzz, no silent reflow. Paid route (x402).
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": {
"text": "<text>",
"diff": "<diff>"
},
"name": "text_apply_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | unified diff | |
| text | Yes | the file text |