finalize_deck
Save a finished Yu-Gi-Oh! deck only when validate_deck confirms legality, writing .ydk, ydke:// URL, decklist, and history; otherwise return issues without saving.
Instructions
Save a finished deck, but only if validate_deck says it is legal (otherwise nothing is written and the problems come back). Writes data/decks/..ydk and a .json with the ydke:// URL, a text decklist, the points or ban breakdown and the data "as of" date. Saving the same name again keeps the previous .ydk in data/decks/history/. Follow-up questions can pass the returned ydk path to validate_deck or find_links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| notes | No | ||
| format | Yes | ||
| decklist | No | ||
| ydk_path | No | ||
| ydk_text | No | ||
| point_cap | No |