get_message_context
Fetch a cached message and its surrounding messages in a chat to view conversation context. Works offline and without side effects.
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.
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) |