get_message_context
Fetch the surrounding conversation for a specific WhatsApp message, returning the target message plus preceding and succeeding messages in chronological order.
Instructions
Retrieve the conversational context around a specific message. Returns the target message along with preceding and succeeding messages in chronological order.
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 | Number of succeeding messages to fetch (default 5, max 50). | |
| before | No | Number of preceding messages to fetch (default 5, max 50). | |
| message_id | Yes | Internal message primary key (Z_PK) or unique WhatsApp stanza ID. |