import_search_leads_to_list
Import lead rows from a prior search_external_leads session into a lead list. Two-phase: first call returns a confirmation token + preview; the user reviews an inline card and confirms; second call with confirmation_token commits. provider_ids omitted means import every lead in the search session. Supply list_id for an existing list, or list_name to create a new list during the confirmed commit. After a committed result returns list_id, use that exact list_id when creating a campaign from the imported search leads. Over MCP: call this tool once, without confirmation_token. It runs right away and returns the result.
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": {
"session_id": "<session_id>"
},
"name": "import_search_leads_to_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | No | Existing lead list id to import into (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000) | |
| list_name | No | Name for a new list to create during the confirmed import when list_id is omitted | |
| session_id | Yes | Lead search session id returned by search_external_leads (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000) | |
| provider_ids | No | Optional selected provider ids from the search result. Omit to import all search results. | |
| confirmation_token | No | Phase-2 token (omit on phase-1) |