tg_search_global
Search across all Telegram chats your account can access by text query, with type, date, and chat filters; excludes public channels you have not joined.
Instructions
Search across all chats your account has access to.
Public channels you have not joined are NOT included: open such a channel with tg_search_messages instead.
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": "tg_search_global"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Message type filter. | any |
| limit | No | ||
| query | Yes | Text query. | |
| max_date | No | ISO date or unix timestamp. | |
| min_date | No | ISO date or unix timestamp. | |
| offset_id | No | Cursor message id from a previous `next` object. | |
| groups_only | No | Only groups/supergroups. | |
| offset_peer | No | Cursor chat ref from a previous `next` object. | |
| offset_rate | No | Cursor from a previous `next` object. | |
| broadcasts_only | No | Only broadcast channels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||