get_folders
List mail folders in an Exchange mailbox. Specify a parent folder and set recursive to traverse subfolders.
Instructions
List mail folders from the Exchange mailbox.
Args: parent_folder_id: Parent folder to list children of. Defaults to "msgfolderroot" (top-level). Can be a distinguished folder name or a raw folder ID. recursive: If True, traverse all subfolders recursively (Deep). If False, only list immediate children (Shallow).
Returns: JSON array of folder objects with: name, id, total_count, unread_count, child_folder_count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_folder_id | No | msgfolderroot | |
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |