lemlist_get_leads
List all leads for a campaign with their state (sent, replied…).
⚠️ Goes through the JSON export, NOT get_all_leads: the latter calls
the export without state, hence with lemlist's default — which filters everything out and
returns an empty list that reads as "no leads". A one-lead campaign
thus came back empty (signal 719) while the single-lead route returned it just
fine, and the guide announced the forcing as a given for the whole connector.
export_campaign_leads carries the default state="all", verified live on
2026-08-31: we take the surface that has the guard rather than rebuild one.
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": {
"campaign_id": "<campaign_id>"
},
"name": "lemlist_get_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| campaign_id | Yes |