search_messages
Search messages by query in a specific chat or across the entire Telegram account.
Instructions
Full-text search over messages, inside one chat or across the whole account when chat is omitted.
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 | Chat identifier from list_chats or search_chats: a numeric chat_id, a @username, or "me" for Saved Messages. Do not invent one. | |
| limit | No | ||
| query | Yes |