resolve_folder
Maps a generic email folder role (e.g., sent, trash) to the provider-specific folder name for a given account, using SPECIAL-USE flags and common fallbacks.
Instructions
Resolve a special-use role to the provider-specific folder name.
For example "sent" becomes "Sent Messages" on iCloud and "[Gmail]/Sent Mail" on Gmail. Uses SPECIAL-USE flags first and falls back to common folder names. Returns null if no matching folder exists.
Args: account: Account name from list_accounts. role: One of inbox, sent, trash, drafts, junk, archive, all, flagged or important (case-insensitive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |