Sync one inbox now
sync_inboxFetches the newest ~300 messages per selected folder for iCloud/IMAP/Microsoft (Gmail's stored window grows to 300 over its first syncs, 40 newest per sync; default: INBOX + Sent + Drafts) and replaces the local window for each. Pass folders to override (and persist) the inbox's selected folder scope for this and future syncs (on iCloud and IMAP the account's Sent and Drafts folders always stay in it). Use list_folders first to get the canonical folder ids/names for this account. The spam check runs during the sync: obvious spam and scams go straight to the mailbox's Spam folder, and mail that only looks like junk or a scam gets a junkHint on its row (nothing is moved). Returns demo data marked isDemo:true if no credential is stored yet.
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": {
"inboxId": "<inboxId>"
},
"name": "sync_inbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folders | No | Overrides (and persists) the inbox's selected folders for this sync, e.g. from list_folders output. At most 25 folders. | |
| inboxId | Yes |