list_folders
Browse mail folders and retrieve their IDs for referencing emails, or drill into one level of subfolders under a parent folder when a parentFolderId is given.
Instructions
List mail folders. With no parentFolderId, returns top-level folders. With parentFolderId set, returns immediate child folders (one level deep). Use the returned 'id' as a folder reference for list_emails. For Outlook's standard folders you can also pass their well-known names directly (inbox, drafts, sentitems, deleteditems, junkemail, archive, outbox, conversationhistory) without calling this tool first.
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_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of folders to return. Default 100, max 200. | |
| parentFolderId | No | If set, list the immediate children of this folder (subfolders). If omitted, list top-level folders in the user's mailbox. |