Import batch
import_batchBulk-import collection rows that were parsed client-side from a CSV export: rows = the CSV rows as objects keyed by the file's own column headers. format: auto (default) recognises the app from the headers — ManaBox, Deckbox (also Delver Lens's Deckbox preset), Moxfield, Dragon Shield, Sorted, Archidekt, TCGplayer app, MTGGoldfish, TopDecked, Helvault, Deckstats, MTGStocks, CardCastle — and reads any other file by its column names (Name / Card Name, Set Code, Set Name, Collector Number, Quantity, Foil / Finish, Condition, Language, Scryfall ID, Purchase Price, Reg Qty + Foil Qty). Pass a format id only to overrule the detection; decklist (or decklist_text with no rows) reads plain decklist text into the collection. The response names the format it read (detected_format) and sets unchecked_layout when that layout was written without a real export file to test it: tell the user, and suggest they look over the first cards once the job is done. A Cardmarket export cannot be imported (it names cards only by Cardmarket's product number) and is refused with that reason. A card named in another language is read as its English card (fix_unresolved with job_id lists them as read_as). A set given by name only is matched to its set when the name is the one Scryfall uses; otherwise the card's newest regular printing is taken. Max 500 rows per call — pass the returned job_id in follow-up calls to continue the same job, then processing runs in the background in resumable chunks. ManaBox binders / Dragon Shield folders become locations automatically. Returns job status; when it finishes as needs_review, use fix_unresolved. A name matching no card exactly is looked up on Scryfall, at most 200 an import and 500 a day per player: a row past that is left for fix_unresolved, saying why.
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": "import_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| start | No | Begin background processing (default true) | |
| format | No | ||
| job_id | No | Continue a previously created job | |
| decklist_text | No |