List folders
folder_listBrowse mail folders by account, filter by name or special use, and retrieve folder IDs with message counts. Supports nested tree view and depth control.
Instructions
List mail folders with their ids and message counts.
With no filters this browses: every account's root folder plus one level
below it. Raise depth to walk further, or give a filter — name is a
case-insensitive substring — and the whole tree is searched instead. Pass
tree=true to get folders nested under children rather than flat.
Counts come from Thunderbird's own folder database. On IMAP that database can lag until the folder has been selected once in Thunderbird, so treat unread and total counts as close rather than exact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tree | No | ||
| depth | No | ||
| limit | No | ||
| is_tag | No | ||
| is_root | No | ||
| parent_id | No | ||
| account_id | No | ||
| is_unified | No | ||
| is_virtual | No | ||
| is_favorite | No | ||
| special_use | No | ||
| include_counts | No | ||
| has_unread_messages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||