Match posts to files
tg_match_postsMatches posts from an intro chat to indexed files in a files chat, returning best file matches with scores, message IDs, and any passwords or versions found.
Instructions
Pair description posts in intro_chat with files in files_chat (which must be indexed). Split archives are grouped. Returns, per post, the best matching files with a score, message ids and any passwords/versions found in the post. Typical use: one channel announces/describes, another hosts the downloads.
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": {
"intro_chat": "<intro_chat>",
"files_chat": "<files_chat>"
},
"name": "tg_match_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | No | How many recent intro posts | |
| query | No | Only posts containing this text | |
| fields | No | Keep only these fields in list items (e.g. ["message_id","name","size"]) | |
| format | No | compact = lists as {columns, rows} tables; saves a lot of context for long listings | json |
| account | No | Account id (see tg_list_accounts). Defaults to the default account. | |
| per_post | No | ||
| min_score | No | ||
| files_chat | Yes | Chat: @username, username, t.me link, t.me/c/<id> link, or numeric id such as -100123… | |
| intro_chat | Yes | Chat: @username, username, t.me link, t.me/c/<id> link, or numeric id such as -100123… |