Withdraw a change
withdraw_changeTakes back a change you made that's still open (requested, drafting, or in review), so its editors no longer consider it: it's done, as withdrawn, and stays in list_changes. Use it when the person no longer wants the change, or is replacing it with a different one; to fix a change instead, propose_change with its change revises it in place. Only whoever made a change withdraws it; one that's applied or declined is an error saying so, and one already withdrawn stays as it is. Returns the change.
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": "withdraw_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The change's ID, as propose_change or list_changes gives it. | |
| tree | No | The tree's slug, as list_trees gives it (not its name). Required unless the Forest has one tree. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Who asked for it, by name. | |
| id | Yes | The change's ID: pass it to get_change. | |
| url | Yes | Its page in OKForest, where editors review and apply it. | |
| mine | Yes | Whether the person asking made it: only they revise it (propose_change with `change`) or withdraw it (withdraw_change). | |
| about | No | The page it was asked about, when it was asked from one. | |
| asked | Yes | When it was asked for (ISO 8601). | |
| paths | Yes | The files it creates, edits, moves, or deletes. | |
| state | Yes | Where it is: `requested` (asked for, waiting for an editor), `drafting` (accepted, an editor writing its edits), `in-review` (edits written, waiting for an editor to apply them), or done: `applied` (committed), `declined`, or `withdrawn` by whoever asked. | |
| title | Yes | What it does, in a few words: its commit's first line. | |
| updated | Yes | When it last changed (ISO 8601). |