List folders
list_foldersRetrieves an account's folders with their IDs, names, roles, and message counts; read-only, use it to get a folder ID for actions that require one.
Instructions
The folders of an account: id, name, role (inbox, sent, drafts, trash, junk, archive, all) and counts. It reads only. Use it for a folder's id. search_messages, update_messages and create_folder take a role such as inbox or archive without it.
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": {
"account_id": "<account_id>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The account, by the id list_accounts names |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |