offline_sync
Export Proton Mail emails to browsable HTML files with an offline inbox viewer, writing pages and attachments to your configured mailbox directory. Re-run to sync only new emails incrementally.
Instructions
Export emails as browsable HTML files with a full inbox-style offline viewer. Reads from Protonmail Bridge's local cache and writes HTML pages + attachments to your configured offline mailbox directory. Supports incremental sync — only exports new emails on re-run. If no directory is configured yet, ask the user where they want to store their Offline Mailbox and use set_offline_sync_dir first.
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": "offline_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max emails per folder (useful for testing, e.g., 10) | |
| folders | No | Specific folders to sync (defaults to all folders) | |
| batch_size | No | Emails per fetch batch (default 50) | |
| output_dir | No | Override the saved directory (optional — uses the configured directory by default) |