untrash
Restore a deleted email thread from Trash while preserving its labels. Removes the Trash label and prepares the message for return to the Inbox when needed.
Instructions
Restore a thread from Trash. SIDE EFFECTS: removes the TRASH label; user labels are preserved, but INBOX is NOT re-added — use modify_labels (add INBOX) to return it to the inbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |