Undo last change
undo_last_changeDESTRUCTIVE: undo the player's newest change to the collection, whoever made it (the web app, you, another assistant, a key), within the last 24 hours; call again to step further back. Without confirm:true this is a dry run: it says what would be undone (change), who made it (made_by; yours is false when it was not you: tell the player), and removes_copies, the copies the undo takes out of the collection (an import's cards): say the count. Then repeat with confirm:true and the dry run's op_id and copies, once the player agrees. A swap is never undone (propose a new one), and an undo is refused when the cards changed since or a deck was deleted: relay the refusal, which says what to do instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "undo_last_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op_id | No | The dry run's op_id: refused if a newer change came since | |
| copies | No | The dry run's copies: refused if that change grew since (an import resumed) | |
| confirm | No |