List Email Folders
emailfolders_listList mail folders from a Microsoft 365 mailbox. Returns root folders or child folders of a specified parent, with metadata like unread counts.
Instructions
📖 List mail folders from mailbox (read-only, safe for unsupervised use)
Returns root folders or child folders of a specific parent with metadata including unread counts and child folder information.
Args: account_id: Microsoft account ID parent_folder_id: If None, lists root folders. If provided, lists child folders. include_hidden: Whether to include hidden folders (default: False) limit: Maximum number of folders to return (1-250, default: 100)
Returns: List of folder objects with: id, displayName, childFolderCount, unreadItemCount, totalItemCount, parentFolderId, isHidden
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| parent_folder_id | No | ||
| include_hidden | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |