get_chat_messages
Fetch a chat's message history using its chat ID, with optional date range and count limits to target specific messages.
Instructions
Get message history for a specific chat
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_chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to return (default 100) | |
| chat_id | Yes | Chat identifier (e.g. iMessage;-;+1234567890) | |
| to_date | No | Filter messages up to this date (e.g. '2025-12-31') | |
| from_date | No | Filter messages from this date (e.g. '2025-01-01' or '2025-03-15T14:00:00') |