Search Messages
search_messagesSearch Telegram messages by full-text query to find chats or specific messages, returning newest results first and optionally limiting the search to one chat.
Instructions
Full-text search (Telegram server-side search), newest first.
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 |
|---|---|---|---|
| chat | No | Limit to one chat; omit to search all chats | |
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||