List Telegram Contacts
tg_list_contactsList or search a Telegram account's contacts and the people it chats with. For a WhatsApp account's address book use wa_list_contacts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tg_list_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | how many to return (default 500, max 2000) | |
| query | No | optional: only contacts whose name, number or @username contains this; case-insensitive and ignores punctuation in numbers. Omit to list everything | |
| account_id | No | which Telegram account to read, from wa_list_accounts; omit it when the workspace has only one Telegram account | |
| after_cursor | No | return contacts after this cursor; omit to start from the beginning |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| total | Yes | how many contacts matched in total, before the limit was applied | |
| refusal | No | present only when the request was declined | |
| contacts | Yes | ||
| has_more | No | true when more contacts remain after this page | |
| truncated | No | true when more contacts exist than were returned | |
| next_cursor | No | pass this as after_cursor to continue; page until has_more is false to read the whole address book |