Import deck
import_deckCreate a deck from pasted decklist text — the reliable path, ask for it first ("4 Lightning Bolt (2XM) 123" per line; Commander/Sideboard sections, "SB:" lines and F foil markers understood; any site's text export works: Moxfield, Archidekt, MTGGoldfish, MTGO, Arena). The link of a public Moxfield deck (moxfield.com/decks/…) is also accepted: it is asked for once, as a browser would. When Moxfield does not answer, the error says so — ask the user to open the deck on Moxfield → More → Export, copy the text, and retry with decklist_text. Sideboard cards land in the sideboard section; up to two commanders are kept as a pair. A companion (a Companion section, Moxfield's companion, CMPN) becomes the deck's companion, in the sideboard. Wants are stored oracle-level (any printing satisfies them). Card names may be in any language Scryfall prints ("4 Blitzschlag", "1 Foudre"): read_as lists each with the English card it was read as — tell the user. A foreign name several cards share is left unresolved with those cards named: ask which. Returns the deck, unresolved card names, ignored_lines (lines that were not a card: show them to the user, never guess) and notes to relay — e.g. a Commander list that came with a sideboard keeps it, and legality will flag it. Never refused for the plan: a deck past the decks the user's plan keeps editable is imported whole and answers editable:false and plan_limit, which names the decks that take edits: relay it. Typical next step: claim_from_collection to pull owned cards and report what is missing.
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_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public Moxfield deck URL (alternative to decklist_text; Moxfield may block it) | |
| name | No | Deck name override | |
| format | No | ||
| commander | No | Commander override (else detected from the source) | |
| companion | No | Companion override (else detected from the source) | |
| decklist_text | No | Plain decklist text — preferred |