get_message_context
Retrieve surrounding WhatsApp messages before and after a specified message ID to understand conversation context.
Instructions
Get context around a specific WhatsApp message.
Args:
message_id: The ID of the message to get context for
before: Number of messages to include before the target message (default 5)
after: Number of messages to include after the target message (default 5)
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 | ||
| before | No | ||
| message_id | Yes |