can_undo
Check whether any undo is available and read the label of the transaction it would revert, so you do not roll back someone else's edit.
Instructions
Cheap yes/no on whether anything is undoable right now, plus the LABEL of the entry undo would revert -- read that label before undoing so you do not roll back someone else's edit. Prefer get_undo_state when you also want counts and the redo side in the same call.
Returns: { can_undo: bool, label: string (title of the transaction undo would revert), reason?: string (why not, when can_undo is false) }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||