Undo a change made from the inbox view
undo_view_actionPuts back every message one earlier change moved: an inbox-view change or a change from archive_messages, trash_messages and the other message tools (archive, trash, spam, star, label, unlabel, snooze), or confirm_mark_spam. Works once, for 7 days. Pass the undoId from that action; leave it out to undo the most recent change (only when the person asks to undo their last change).
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_view_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undoId | No |