Get Email Folder Tree
emailfolders_get_treeRecursively build a tree of mail folders to understand the mailbox folder structure and organization.
Instructions
📖 Recursively build a tree of mail folders (read-only, safe for unsupervised use)
Returns a hierarchical tree structure showing all folders and their nested children. Useful for understanding mailbox folder organization.
Args: account_id: Microsoft account ID parent_folder_id: Root folder to start from (None = root) max_depth: Maximum recursion depth to prevent infinite loops (1-25, default: 10) include_hidden: Whether to include hidden folders (default: False)
Returns: Nested tree structure with folders and their children
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| parent_folder_id | No | ||
| max_depth | No | ||
| include_hidden | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||