get_sample_lead_csv
Get a ready-to-fill CSV template for importing leads, with one column per custom variable this workspace has registered. Use it when you're about to build a lead file and want the exact headers the importer accepts, or when a user asks what a lead CSV should look like. Returns the file content as text plus the suggested filename, and apiRows: the same example leads already converted to the shape this API takes. IMPORTANT: the two shapes differ. In the CSV a variable is a TOP-LEVEL column; in any API call (push_leads with leads, add_leads_to_campaign) the same value must be NESTED under custom, because a loose top-level key is accepted by the request schema and then silently dropped. Copy apiRows rather than transposing the CSV headers yourself. Built-in columns map to lead fields. Every OTHER column is IGNORED by default when the file is uploaded in the app, and only becomes a {{token}} if the person mapping it opts that column in, so a messy export cannot fill the workspace with junk variables. Note this differs from the API path you are using: keys you put inside custom are always kept and registered automatically. One example row deliberately leaves a variable blank, which is what a lead missing that value looks like: it gets the step's fallback message instead of the personalized one. Set sink to match where you will upload the file: campaign or lead_list.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_sample_lead_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sink | No | Where the file will be uploaded. 'campaign' (default) offers the columns a campaign audience reads; 'lead_list' also includes the enrichment columns (headline, location) that a lead list stores. Getting this wrong isn't fatal, but a column the target ignores is silently dropped on import. |