List folders and labels
mail_list_foldersLists folders (and Gmail labels) with their role (inbox, sent, drafts, trash, archive, spam, custom) and counts, for one account or all. Use it to get a folder_id for mail_move or mail_list_messages. Example: { "account_id": "acc_…" }.
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": "mail_list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | One account (`acc_…`); omit for every account you can reach. | |
| profile_id | No | Only accounts in this profile (`prf_…` from profiles_list). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| warnings | No | Accounts that failed or timed out; results from the others are still here. |