apply_edit
Applies a previewed edit by its id and keeps that id so undo can revert it. Fails if any file changed since the preview.
Instructions
Write a previewed edit (the id comes from a write tool's preview). The applied edit keeps that id, so undo_edit(id) reverts it. Fails if any file changed since the preview.
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": {
"id": "<id>"
},
"name": "apply_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| allow_large | No |