get_message_context
Fetches surrounding messages before and after a given chat message ID so agents can reply with accurate context.
Instructions
Window of messages around one message id (before/after), for replying in context.
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>",
"message_id": "<message_id>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us). | |
| after | No | Messages after it (0-50). | |
| before | No | Messages before it (0-50). | |
| message_id | Yes | Message id to centre on. |