tg_search
Search Telegram messages across all chats or one chat. Filter by attachment type, tag, and date range to locate specific content.
Instructions
Full-text search across all chats, or inside one chat when chat is given.
Args: query: text to look for. May be empty when filtering by kind or tag. chat: restrict to one chat; omit to search everywhere. limit: how many messages to return. kind: attachment filter, same tabs as tg_media ("photo", "file", "music", "voice", "link", ...). Combine with an empty query to list, say, every document someone sent. since: ISO date — stop once messages get older than this. until: ISO date — start from this point back in time. tag: Saved Messages tag (chat="me" only), the same labels shown in Telegram. tg_saved_tags lists them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| chat | No | ||
| kind | No | ||
| limit | No | ||
| query | No | ||
| since | No | ||
| until | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |