get_message_context
Fetch a cached WhatsApp message with the messages before and after it, plus its quoted reply context. Works offline and read-only to inspect conversation context without side effects.
Instructions
(reads local cache; works while disconnected) Fetch a specific cached message and the surrounding messages in its chat, plus the message it replies to. Read-only; no side effects. Use list_messages to search across chats, or with chat_jid when the ID is cached in more than one conversation, which this tool reports as an error. Returns a JSON object with the target message and arrays of messages before and after it; messages carry edited: true when edited, revoked: true with revoked_at when deleted for everyone (their text and media are kept), and, for a reply, quoted_message_id, quoted_chat_jid, quoted_sender_jid and quoted_text as the reply carried them, with the cached original as quoted_message when it can be verified in the same conversation, or quoted_message_missing: true when the original is unavailable.
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": {
"message_id": "<message_id>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | messages to fetch after the target (default 5; non-positive values fall back to the default) | |
| before | No | messages to fetch before the target (default 5; non-positive values fall back to the default) | |
| message_id | Yes | WhatsApp message ID of the target message (use `message_id` from list_messages) |