preview_upload_mapping
STEP 1 of contact upload. Given the column headers from the user's spreadsheet/CSV, returns how each column maps to an Xmagnet field (standard fields + the tenant's saved custom fields). ALWAYS call this before upload_contacts and show the mapping to the user for confirmation. Unrecognized columns are auto-assigned to free custom_field slots.
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": {
"columns": "<columns>"
},
"name": "preview_upload_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | Exact column header names from the user's file |