Find email folder
find_email_folderLocate the real mailbox folder containing an email when it appears in a virtual folder such as All Mail or Starred, returning the source folder path needed for moving or deleting it.
Instructions
Find a real mailbox folder 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 first real folder path found, to use as sourceMailbox; on a label-based server a message may also sit in other folders.
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 |