sync_chat_history
Page backward through a WhatsApp chat to store older messages up to a specified date, with page and time limits; call again to continue.
Instructions
Page back through one chat until messages from back_to (YYYY-MM-DD) are stored.
Stops at the page cap (max 50), after three consecutive requests yield nothing older, or at the time budget (max 600 seconds). wait_seconds applies to each page. Call again to continue.
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": {
"chat": "<chat>",
"back_to": "<back_to>"
},
"name": "sync_chat_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| account | No | Account from list_accounts when several WhatsApp numbers are set up; default: default | |
| back_to | Yes | ||
| max_pages | No | ||
| wait_seconds | No | ||
| time_budget_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||