List Mail Folders
get_foldersList email and calendar folders with IDs, item counts, and unread counts to convert folder names into FolderIds for email search and move operations.
Instructions
List mail/calendar folders with their ids, item counts and unread counts.
Use it to turn a custom folder name into the FolderId find_emails and
move_email accept. total is the server's own count of folders in view, so it
is trustworthy.
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": "get_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Deep walks the whole subtree, Shallow only the direct children. | Deep |
| limit | No | ||
| offset | No | skip this many folders — how to reach the ones past `limit`. | |
| parent | No | well-known name ("msgfolderroot", "inbox", …) or a FolderId. | msgfolderroot |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |