Preview a spreadsheet import
aalto_import_previewReads the CSV staged by aalto_import_start and shows what an import would do: column mapping, new rows, duplicates of existing products, rows with errors, and whether it fits the plan. Imports nothing. Returns status needs_input (fix the mapping with mapping_overrides and call again) or ready with a confirm_token for aalto_import_commit. Once ready the plan is frozen: calling again returns the same preview; to change it, start a new import.
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": {
"job_id": "<job_id>"
},
"name": "aalto_import_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| on_duplicate | No | What to do with rows matching a product already in the workspace (by source_url, sku, or name + brand). | skip |
| mapping_overrides | No | Column name → target: a product field (name, brand, price, sku, source_url, image_url, …), tags, section, status, "custom:<field name>", "notes_append" (adds "Column: value" to the notes; several columns may use it) or "ignore". |