get_message_context
Fetch a cached WhatsApp message plus the messages before and after it in the same chat, so you can read surrounding conversation context while offline.
Instructions
(reads local cache; works while disconnected) Fetch a specific cached message and the surrounding messages in its chat. Read-only; no side effects. Use list_messages for searching across many chats. Returns a JSON object with the target message and arrays of messages before and after it; messages carry edited: true when edited, and revoked: true with revoked_at when deleted for everyone (their text and media are kept).
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) |