Poll for new mail
poll_folderPolls a Proton Mail folder for messages that arrived since the last checkpoint, without marking them read. Use advance=false to preview and commit the returned checkpoint to advance safely.
Instructions
Messages that have arrived since the last poll. The very first poll emits nothing and just records where the mailbox ends, so turning this on does not replay the backlog. Marks nothing as read. Pass commit to commit a checkpoint an advance=false poll returned; repeating that is harmless.
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": "poll_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most per call, 1 to 100 (default 20). | |
| commit | No | A checkpoint '<uidvalidity>:<uid>', exactly as an advance=false poll reported it. Commits it instead of polling. | |
| folder | No | Default INBOX. | |
| advance | No | Default true. Set false to look without committing, then confirm with commit. |