Undo an AI agent change
undo_changeAI Agents: Use when the customer asks to undo a change the assistant made. It puts the values from before back, only while the record still holds what was written, so newer work is never overwritten. A new record cannot be undone: nothing is ever deleted. Ask the customer before calling it. Not for stopping an automation (use set_automation_status).
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": {
"change_id": "<change_id>"
},
"name": "undo_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change_id | Yes | The change id, as apply_proposal or list_changes returns it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| id | Yes | ||
| kind | Yes | ||
| note | No | ||
| type | Yes | ||
| error | No | ||
| label | Yes | ||
| fields | Yes | ||
| status | Yes | ||
| canUndo | No | ||
| recordId | Yes | ||
| systemId | No | ||
| operation | Yes | ||
| proposalId | No | ||
| systemName | No | ||
| sendsMessage | No |