Trigger email sync
trigger_email_syncStart an on-demand sync that fetches and processes a mailbox's email, matching it to jobs. Marks the account SYNCING and returns the account once the sync is launched; the sync runs in the background — poll get_email_sync_status to follow it and stop_email_sync to cancel. Without days it resumes from the last sync; with days it re-reads that window, and mail already ingested is not duplicated. Mail the mailbox sent is stored as SENT and logged as MESSAGE_OUT on the contacts it went to — never matched to a job, classified or reviewed. Anyone who can access the mailbox's profile may run it.
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": {
"id": "<id>"
},
"name": "trigger_email_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Email account id (UUID from list_email_accounts). | |
| days | No | Sync the last N days (1-3650), e.g. to pull older mail; omit to resume from the last sync. |