search_messages
Search cached Telegram messages with keyword full-text search, vector cosine search, or hybrid combination.
Instructions
Search cached Telegram messages with keyword FTS, vector cosine search, and hybrid candidates.
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 ID, @username, or omitted for TELEGRAM_DEFAULT_CHAT_ID. | |
| limit | No | Candidates per search channel. | |
| query | Yes | Search query. | |
| after_id | No | Only messages newer than this message ID. | |
| before_id | No | Only messages older than this message ID. | |
| hybrid_limit | No | Hybrid candidates to return. | |
| vector_limit | No | Vector chunks to return. | |
| keyword_limit | No | Keyword FTS candidates to return. |