List folders and labels
list_foldersRetrieve Proton folder and label names over the Bridge so you can file and tag messages correctly; optionally inspect one folder’s counts and UIDVALIDITY before acting on stored UIDs.
Instructions
List all Proton folders and labels available over the Bridge. Call this first to learn exact folder/label names for filing and tagging. Pass folder to get that folder's message counts plus UIDNEXT and UIDVALIDITY instead: UIDs are only valid within one UIDVALIDITY generation, so check it before acting on uids noted earlier.
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 |
|---|---|---|---|
| folder | No | Report this one folder's counts and UIDVALIDITY instead of listing every folder. |