search_messages
Find Telegram messages by keyword, optionally filtering by chat or chat type (user, group, channel). Set result limit to control output.
Instructions
Search messages by keyword, optionally in a specific chat or chat type
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": {
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| chat_id | No | ||
| chat_type | No | Filter search to only this chat type |