list_mail_folders
Retrieve Outlook mail folders with unread and total item counts to browse mailbox structure, paginate results, or refresh cached folder data.
Instructions
List Outlook mail folders with unread and total item counts. Graph cost: 1 request plus 1 batch per folder nesting level, skipped while the cache is younger than OUTLOOK_CLI_CACHE_SECS (default 0).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_mail_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | Opaque next_cursor from a previous response | |
| offline | No | Read the local cache only; no Graph request. | |
| refresh | No | Force a full folder-tree fetch even when the cache is fresh. Use only when a folder is missing. |