Undo my last edit
undo_my_editRevert your newest saved canvas edit on a slate while keeping and listing changes others made since, so you only undo your own work.
Instructions
Take back your own newest canvas edit on a slate (never anyone else's); what someone changed since stays and is listed.
Undo. Takes back the newest canvas edit this caller saved on the slate with slates.applyOperations (notes, connections, slate settings) that is not undone yet: the same account and the same token, so it never takes back a person's or another agent's edit. Each note, connection and setting the edit changed goes back to how it was, unless someone else changed it since: that part stays as they left it and is listed in left[]. The undo is saved as an edit (the revision goes up, every open canvas shows it) and answers the run it undid (undone). Workshop and map edits are undone with undo_workshop_edit. An agent undoes by the rules its edits meet: 423 agents_paused while people paused agents, 409 needs_direct_edit unless a person lets it edit directly. 409 nothing_to_undo when no edit of the caller is left to undo; 409 slate_changed when the slate changed while it was being saved (call again).
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": {
"shareId": "<shareId>"
},
"name": "undo_my_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | The confirmation id from a confirmation_required result, once the person agreed. | |
| shareId | Yes | The slate ID from its address: /canvas/<shareId>. | |
| idempotencyKey | No | Send with confirm: the idempotencyKey from the confirmation_required result. |