List mail folders
mail_list_foldersLists top-level Outlook mail folders with IDs, unread and total counts. Pass includeChildren to retrieve subfolders; use returned IDs to fetch messages.
Instructions
Lists the top-level Outlook mail folders with their ids, unread counts and total counts, 50 per call by default. Pass includeChildren to also get one level of subfolders. Only top-level folders are returned otherwise, so a nested folder needs a second call. Use an id from here as folderId in mail_list_messages, though the well-known names (inbox, archive, sentitems) work there without looking anything up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many top-level folders to return. Defaults to 50. | |
| includeChildren | No | Also return one level of subfolders under each top-level folder. Nesting deeper than one level needs a second call with that folder as the parent. |