list_folders
List all Outlook mail folders with their message and unread counts to obtain folder IDs required by email listing, searching, and moving tools.
Instructions
List all mail folders in Outlook with their message and unread counts. Use this to discover folder IDs needed by list_emails, search_emails, prepare_move_email, and other folder-based tools. Returns an array of folders, each with id, name, messageCount, and unreadCount. When account_id is provided, returns folders grouped by account. Returns an error if Outlook is not running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Account filter: a single account ID, an array of IDs, "all" for every account, or omit to use the default account (e.g., from list_accounts). |