remove_leads
Remove chosen discovered leads (by lead_id from list_leads) from this agent's Leads Discovery scan results, for example leads from the wrong country or the wrong groups. It never deletes a CRM chat: to delete conversations use remove_chats. Call it ONCE with every lead_id to remove; the owner approves once. Later scans do not find these people again. Leads already imported keep their CRM chat; the result lists their visitor_ids.
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>",
"lead_ids": "<lead_ids>"
},
"name": "remove_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Short reason shown in the approval | |
| agent_id | Yes | ||
| lead_ids | Yes | lead_id values from list_leads |