Get Chat
wa_get_chatRead the most recent messages for one WhatsApp number, oldest first — or, with chat, one conversation, including older history loaded with wa_load_history (a Telegram account reads with tg_get_chat). Use this for context before replying; use wa_list_messages to page through everything new. Narrow with since/until (when sent; until is exclusive).
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": "wa_get_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | read ONE conversation — a phone number or a group JID — including history loaded with wa_load_history; omit for the account's most recent messages across all chats | |
| limit | No | how many recent messages, 1-200; defaults to 50 | |
| since | No | only messages sent at or after this time: RFC3339 with a zone (2026-10-01T09:00:00+03:00) or a date (2026-10-01 = midnight UTC); omit for no lower bound | |
| until | No | only messages sent BEFORE this time — exclusive, so all of 1 October is since 2026-10-01 until 2026-10-02; same formats as since; omit for no upper bound | |
| account_id | No | the account whose conversation to read, from wa_list_accounts; omit it when the workspace has only one account | |
| include_media_urls | No | also return attachment.media_url on each available attachment — a time-limited (1h) signed URL to GET the bytes with plain HTTP instead of a wa_get_media call; off by default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | the account this conversation was read from | |
| refusal | No | present only when the request was declined | |
| has_more | No | true when older messages match than were returned; page them with wa_list_messages(account_id, chat, since, until, include_history=true) | |
| messages | Yes | recent messages for this account, oldest first | |
| account_notices | No | present when a number this read covers is not working: new messages are not arriving on it; says why and what to do |