get_message_context
Retrieve surrounding messages for a target message ID on WhatsApp, specifying the number of messages before and after for context. Integrates with AI agents to enhance chat history analysis and interaction.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
after | No | Number of messages after (default 5) | |
before | No | Number of messages before (default 5) | |
message_id | Yes | The ID of the target message to get context around |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"after": {
"default": 5,
"description": "Number of messages after (default 5)",
"minimum": 0,
"type": "integer"
},
"before": {
"default": 5,
"description": "Number of messages before (default 5)",
"minimum": 0,
"type": "integer"
},
"message_id": {
"description": "The ID of the target message to get context around",
"type": "string"
}
},
"required": [
"message_id"
],
"type": "object"
}