List mail folders
list_foldersLists the folders of a mailbox: path and, when set, special use (\Inbox, \Drafts, \Sent, \Archive, \Junk, \Trash...). On Gmail, labels appear as folders. The paths are the values accepted by folder in the mail tools and by destination in move_message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Account id, as returned by list_accounts. |