get_messages
Retrieve chronologically ordered messages from a specific chat with metadata, supporting filtering by limit and timestamp range.
Instructions
Get chronologically orderedmessages from a specific chat with metadata and optional filtering.
Args:
chat_id: ID of the chat/conversation
limit: Maximum number of messages to return (default 50)
before: Optional ISO-8601 timestamp to get messages before this date
after: Optional ISO-8601 timestamp to get messages after this date
Returns:
List of Message objects with metadata including platform, sender names, timestamps, reactions etc.
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_id": "<chat_id>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| limit | No | ||
| before | No | ||
| chat_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |