list_leads
This agent's Leads Discovery scan results (discovered leads, imported or not) as a compact table, 20 per page, newest scans first. These are scan rows, not CRM chats: for conversations in the CRM use list_chats. Each row: name, channel, where they were found (group, post, who posted), what they said, any country the platform reports (TikTok region, X account location), fit, whether imported, and the link. Use it for any question about several leads at once (which ones are from a country, who commented on a group, which were imported) instead of opening chats one by one. Filter by channel, scan_id, since (YYYY-MM-DD), imported (yes/no/any), query (words in the name, group, post or comment), and include_filtered for leads the qualifier set aside. Fetch the next page with page=next_page while has_more is true.
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": {
"agent_id": "<agent_id>"
},
"name": "list_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based | |
| query | No | ||
| since | No | Only scans from this date, YYYY-MM-DD | |
| channel | No | facebook, instagram, tiktok, x, youtube, whatsapp, telegram, web, ... | |
| scan_id | No | ||
| agent_id | Yes | ||
| imported | No | ||
| per_page | No | Default 20, at most 50 | |
| include_filtered | No |