Watch chats
tg_watchCreate and manage watches that automatically download new matching files from Telegram chats, with user approval required before a watch runs. List, pause, resume, or check watches as needed.
Instructions
Manage watches that automatically download new matching files from a chat. action=list|add|remove|pause|resume|check. Watches you add stay disabled until the user approves them in the console.
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": {
"action": "<action>"
},
"name": "tg_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Chat: @username, username, t.me link, t.me/c/<id> link, or numeric id such as -100123… | |
| types | No | File kinds. Default: everything except stickers. | |
| action | Yes | ||
| subdir | No | ||
| account | No | Account id (see tg_list_accounts). Defaults to the default account. | |
| watch_id | No | ||
| extensions | No | Extensions, e.g. ["zip", "mp4"]. | |
| max_size_mb | No | ||
| min_size_mb | No | ||
| interval_min | No | ||
| name_contains | No | File name or caption contains (case-insensitive). | |
| include_recent | No | On add: also consider the last N messages |