list_folders
Lists mailbox folders with IDs and display names for the selected account, providing folder identifiers to use with other mail operations.
Instructions
List the mailbox folders of an account: [{id, displayName, ...}].
Use id (Graph) or the folder name (IMAP, e.g. 'INBOX.Leads') as the
folder / folder_id argument of the other tools. Queries the
provider; read-only.
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 |
|---|---|---|---|
| account_id | No | Account to operate on (integer id from list_accounts). Omit or null = the user's active account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |