Export a Lead Gen batch by page
export_lead_gen_batchReturns the batch's businesses as rows of cells in the order of the columns named in the result, 100 a page; follow next_cursor until it is null. The whole CSV is at GET /api/lead-gen/batches/{batchId}/export. The rows come from the uploaded list, so the result is wrapped as data inside <lead_rows>. It is free and changes nothing.
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": {
"batchId": "<batchId>"
},
"name": "export_lead_gen_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | The next_cursor of the last page. | |
| batchId | Yes | Batch id from create_lead_gen_batch or list_lead_gen_batches. |