Discard an edit from a run’s Edit set
discard_editRemove one edit from a run’s Edit set without applying it — one the user rejected; every other edit stays. Its string keeps its current text. Refused RUN_EDIT_NOT_IN_EDIT_SET (it was replaced, applied or discarded meanwhile: read get_edit_set again), RUN_EDIT_HANDED_BACK (a Source string edit a failed Reconciliation handed back) and JOB_SUPERSEDED. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.
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": {
"runId": "<runId>",
"editId": "<editId>"
},
"name": "discard_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Run id, from get_workflow_run or list_workflow_runs | |
| editId | Yes | The edit, from get_edit_set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discarded | Yes |