Load older messages for one folder (extends only that folder's window)
load_older_messagesFetches messages older than the current synced window for exactly one folder of one inbox. Extends only that folder's window for this inbox, never the default sync window (~300 iCloud/IMAP/Microsoft; Gmail's stored window grows to 300 over its first syncs, 40 newest per sync) that other folders and inboxes still use, and never past the hard per-folder cap of 1000 messages (refuses once reached). Gmail stays metadata-first, exactly like sync_inbox (format=metadata; open a message with get_message for the full body). Coming soon for Microsoft (returns unsupported:true; use sync_inbox's existing window there for now). A subsequent sync_inbox will not trim these older messages back out. If the inbox needs reconnecting, returns needsReconnect/sayToHuman/reconnectUrl instead of fetching. May return { ok:false, busy:true, sayToHuman } instead of fetching, when a sync for this inbox is already running or another load_older_messages call for this same folder is already in flight -- wait a bit and call again rather than retrying immediately. A successful call may also carry a note field (e.g. when added:0 but exhausted:false: nothing new this call, but more may still be older) -- read it and call again to continue rather than treating that as "nothing left".
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>",
"folder": "<folder>"
},
"name": "load_older_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many older messages to try to fetch. Default 50 for Gmail, 25 for iCloud/IMAP. Clamped 1..200 for Gmail, 1..25 for iCloud/IMAP (each message is a separate body download), so call again for more. | |
| folder | Yes | Canonical folder id/name already in this inbox's selected folders (see list_folders / message.folder), not an arbitrary mailbox. | |
| inboxId | Yes |