find_email_folder
Identify the real mailbox folder for an email shown in a virtual folder like All Mail or Starred, returning the folder path needed before moving or deleting the email.
Instructions
Find which real mailbox folder(s) an email belongs to. Required before move_email or delete_email when the email was found in a virtual folder (e.g., "All Mail", "Starred"). Returns the real folder path to use as sourceMailbox.
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": {
"account": "<account>",
"emailId": "<emailId>"
},
"name": "find_email_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name from list_accounts | |
| emailId | Yes | Email ID (UID) from list_emails | |
| sourceMailbox | No | Mailbox where the email is currently visible (e.g., "All Mail") | INBOX |