list_campaign_target_contacts_tool
Lists a campaign's leads (target contacts) with full search, filtering (name, company, tags, statuses, steps sent, the arm an A/B split routed them to via splitArm), sorting and pagination. Returns each lead's targetContactId — use it for lead activity or activating/deactivating a lead.
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": {
"campaignId": "<campaignId>"
},
"name": "list_campaign_target_contacts_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| tags | No | ||
| limit | No | ||
| search | No | ||
| sortBy | No | ||
| outcomes | No | ||
| splitArm | No | Only the contacts an A/B split (splitStepId) routed to one arm ('a' or 'b'). | |
| statuses | No | ||
| openCount | No | ||
| sentSteps | No | ||
| sortOrder | No | ||
| campaignId | Yes | ||
| clickCount | No | ||
| nameSearch | No | ||
| openCountMax | No | ||
| openCountMin | No | ||
| sentBySearch | No | ||
| sentStepsMax | No | ||
| sentStepsMin | No | ||
| clickCountMax | No | ||
| clickCountMin | No | ||
| companySearch | No | ||
| templateTypes | No |