# Drawstep > Drawstep is a browser virtual tabletop. Magic players can choose Free play (a manual sandbox), Assisted, or Enforced. In Card Studio, players design custom Magic cards with abilities that use the same rules engine as printed cards. The Playtest Lab can run a custom card before it is published. ## Player guides - [Join your first table](https://drawstep.xyz/wiki/guides/getting-started): Create an account, find a game and take a seat with the right deck. - [Free play, Assisted and Enforced](https://drawstep.xyz/wiki/guides/table-modes): Choose who moves the cards, checks a play and resolves its effects. - [Games, formats and table variants](https://drawstep.xyz/wiki/guides/games-and-formats): Find a table for your game, choose a Magic variant, or draft a deck together. - [Taking turns and reading the table](https://drawstep.xyz/wiki/guides/playing-at-a-table): Follow a decision, respond on the stack, adjust stops and find a ruling. - [Find cards and build a deck](https://drawstep.xyz/wiki/guides/decks-and-libraries): Inspect a printing, check enforcement, import a decklist and keep a snapshot. - [Friends, invitations and community decks](https://drawstep.xyz/wiki/guides/friends-and-community): Invite someone by handle, share a deck privately or publish a version others can copy. - [Queue for a match or enter a tournament](https://drawstep.xyz/wiki/guides/matchmaking-and-tournaments): Choose casual or ranked play, check in for a tournament and find your match. - [Play and save a Magic campaign](https://drawstep.xyz/wiki/guides/campaigns): Choose a commander, draft a campaign deck and return to a saved run. - [Card Studio and rules-enforced custom cards](https://drawstep.xyz/wiki/guides/card-studio): Design a Magic card’s faces and abilities, test a trigger and share the finished card. - [Set up and replay a Magic playtest](https://drawstep.xyz/wiki/guides/playtest-lab): Build a starting position, run both sides, record a decision and check a new card revision. - [Find and review a replay](https://drawstep.xyz/wiki/guides/replays): Find a finished game and step through the move or rule decision you want to revisit. - [Profile, Looks and account settings](https://drawstep.xyz/wiki/guides/profile-and-looks): Set your primary deck, change your table and lobby appearance, and manage account access. ## Authoring a custom Magic card Read in this order: this file → the core pack (rules, output contract, self-check, card anatomy, how the engine reads a card, every vocabulary name) → the page of each primitive the card uses (`https://drawstep.xyz/wiki/mtg//.md`) → Relationships & references for how parts of the card refer to each other → the Cookbook for complete cards of the hard patterns. Answer with one JSON object. Every document is plain Markdown (served as `text/plain`) generated from the card schema, public, no account and no JavaScript needed — a wiki page URL without `.md` answers with the same Markdown when fetched by an AI assistant or `curl`. If a link below will not open: Every document here is public plain text that answers any HTTP GET — no account, no JavaScript, no rate limit. A link that "fails to open" is your browsing tool's own rule, not this site: some tools (ChatGPT's among them) open a URL only when it is written in the player's message or already in their search index, so a link found inside a page can be refused. Then: (1) use a page whose address the player's message gives — the prompt the Studio writes lists the core and every pack part, and the pack part named on each row of the vocabulary index has every field of every name of its kind; (2) otherwise ask the player to paste the exact URL you need into the chat — an address in their message opens; (3) or ask them to attach the reference as a file (https://drawstep.xyz/llms-full.txt, saved as a `.md`) and the JSON Schema (https://drawstep.xyz/card.schema.json). Never fill a gap from memory or a guess. ## Start here - [Core pack](https://drawstep.xyz/wiki/mtg/pack/core.md): rules, output contract, self-check, card anatomy, how the engine reads a card, translating method, ability kinds, every vocabulary name with its URL, common mistakes - [Start here for AI assistants](https://drawstep.xyz/wiki/mtg/start.md): the rules, the output contract, the self-check the Studio applies, and the index of every primitive with its URL (shorter than the core pack) - [Relationships & references](https://drawstep.xyz/wiki/mtg/references.md): how one part of a card refers to another, with validated cards; every mode, player selector, relation, duration, action and counter - [Cookbook: complex custom cards](https://drawstep.xyz/wiki/mtg/cookbook.md): validated cards for leave-the-battlefield replacements, control-changing returns, counters, forced attacks and blocks, transform, phasing, protection choices, durations - [Card JSON Schema](https://drawstep.xyz/card.schema.json): the card format as JSON Schema (draft-07), generated from the engine's own validator — validate an answer mechanically before giving it - [Common mistakes](https://drawstep.xyz/wiki/mtg/mistakes.md): what goes wrong most often when converting cards ## Reference topics (Magic) - [How the engine reads a card](https://drawstep.xyz/wiki/mtg/overview.md): Zones, the stack, layers, triggers, the replacement pipeline and decision prompts — what happens to your JSON at the table. - [Card anatomy](https://drawstep.xyz/wiki/mtg/anatomy.md): Every top-level field of a card definition: type, whether it is required, what it means and the values it accepts. - [Abilities](https://drawstep.xyz/wiki/mtg/abilities.md): The six ability kinds — spell, triggered, activated, loyalty, static, replacement — and their fields. - [Effects](https://drawstep.xyz/wiki/mtg/effects.md): Every one-shot effect the engine can resolve, with its fields, defaults and examples from stock cards. - [Triggers](https://drawstep.xyz/wiki/mtg/triggers.md): Trigger events and the fields that narrow them: who, which object, intervening conditions. - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.md): Continuous effects and the CR 613 layer each one applies in. - [Replacements](https://drawstep.xyz/wiki/mtg/replacements.md): Effects that rewrite an event before it happens: enters tapped, enters with counters, exile instead of dying, … - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md): “If”, “as long as” and intervening-if clauses, composable with all / any / not. - [Values](https://drawstep.xyz/wiki/mtg/values.md): Numbers: constants, X, counts and derived quantities such as devotion, domain or turn history. - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md): How to say which objects or players an effect acts on, and when the engine prompts for a target. - [Relationships & references](https://drawstep.xyz/wiki/mtg/references.md): How one part of a card refers to another — it, that creature, that player, the exiled card, the chosen color, that much — with a validated card for each pattern, and every mode, player selector, relation, duration, action and counter explained. - [Costs](https://drawstep.xyz/wiki/mtg/costs.md): Mana, tapping, sacrificing, life, counters and every other cost part. - [Keyword abilities & simple keywords](https://drawstep.xyz/wiki/mtg/keywords.md): Parametrised keywords (cycling, kicker, ward, …) and the plain keyword strings the engine understands. - [Layouts & multi-face cards](https://drawstep.xyz/wiki/mtg/layouts.md): Transform, modal DFCs, adventures, split cards, Sagas, Classes, levelers, meld, prepare, dungeons and the Un-set layouts. - [Zones](https://drawstep.xyz/wiki/mtg/zones.md): The seven zones a card can be in, and how zone words appear in filters, targets and effects. - [Translating a card step by step](https://drawstep.xyz/wiki/mtg/translating.md): The method: split the Oracle text, pick ability kinds, map clauses to blocks, targets vs. choices, durations, validate, playtest. - [Custom mechanics](https://drawstep.xyz/wiki/mtg/custom-mechanics.md): How the engine leaves room for mechanics no printed card has: the primitives people miss, named abilities, registered natives, table-resolved steps, on-demand format rulings, and a fully custom partner pair as a worked example. - [Cookbook: complex custom cards](https://drawstep.xyz/wiki/mtg/cookbook.md): Complete, engine-validated cards for the patterns custom cards need: leave-the-battlefield replacements by destination, returns under another player's control, counters, forced attacks and blocks, transform with carried state, phasing, protection choices and every kind of "until …". - [Tokens & token cards](https://drawstep.xyz/wiki/mtg/tokens.md): The token spec inside createToken, the engine's predefined tokens, token cards designed in the Studio and used in decks, and how to write a creating card and its token card as a pair. - [How a card is drawn](https://drawstep.xyz/wiki/mtg/appearance.md): The display-only `appearance` block: built-in frame styles, community and imported frame packs, colour treatments, art variants, flavor and credits, and the rules that keep art inside the frame's window. - [Working with an outside AI](https://drawstep.xyz/wiki/mtg/ai-workflow.md): Have ChatGPT, Claude, Gemini or any chat write a card from this wiki: the start page and per-primitive pages it reads, the Studio's Import that checks the answer with the engine, and the feedback to paste back. - [Common mistakes](https://drawstep.xyz/wiki/mtg/mistakes.md): What goes wrong most often when converting cards, and how to spot it in the Explain view. ## One line per primitive - [Abilities — one line per primitive](https://drawstep.xyz/wiki/mtg/abilities/index.md) - [Effects — one line per primitive](https://drawstep.xyz/wiki/mtg/effects/index.md) - [Statics & layers — one line per primitive](https://drawstep.xyz/wiki/mtg/statics/index.md) - [Replacements — one line per primitive](https://drawstep.xyz/wiki/mtg/replacements/index.md) - [Triggers — one line per primitive](https://drawstep.xyz/wiki/mtg/triggers/index.md) - [Conditions — one line per primitive](https://drawstep.xyz/wiki/mtg/conditions/index.md) - [Values — one line per primitive](https://drawstep.xyz/wiki/mtg/values/index.md) - [Keyword abilities & simple keywords — one line per primitive](https://drawstep.xyz/wiki/mtg/keywords/index.md) - [Costs — one line per primitive](https://drawstep.xyz/wiki/mtg/costs/index.md) ## The reference in parts (each under 100 KB) - [Pack index](https://drawstep.xyz/wiki/mtg/pack.md): the parts below with the sections each holds - [Pack part: Core](https://drawstep.xyz/wiki/mtg/pack/core.md): Read first: your role and the rules, the output contract, the self-check, card anatomy, how the engine reads a card, the translating method, the ability kinds, every vocabulary name with its page URL, common mistakes. - [Pack part: Relationships & references](https://drawstep.xyz/wiki/mtg/pack/references.md): How one part of a card refers to another, with validated cards; every target mode, player selector, filter relation, duration, thisWay action, counter and zone explained. - [Pack part: Filters & targets](https://drawstep.xyz/wiki/mtg/pack/targets.md): TargetDef, PlayerTargetDef and every ObjectFilter field; the selection algebra. - [Pack part: Effects (1 of 3)](https://drawstep.xyz/wiki/mtg/pack/effects-1.md): Every one-shot effect with all its fields. - [Pack part: Effects (2 of 3)](https://drawstep.xyz/wiki/mtg/pack/effects-2.md): Every one-shot effect with all its fields. - [Pack part: Effects (3 of 3)](https://drawstep.xyz/wiki/mtg/pack/effects-3.md): Every one-shot effect with all its fields. - [Pack part: Static effects & replacements (1 of 2)](https://drawstep.xyz/wiki/mtg/pack/statics-replacements-1.md): Every continuous effect (with its layer) and every replacement effect, with all fields. - [Pack part: Static effects & replacements (2 of 2)](https://drawstep.xyz/wiki/mtg/pack/statics-replacements-2.md): Every continuous effect (with its layer) and every replacement effect, with all fields. - [Pack part: Triggers & conditions](https://drawstep.xyz/wiki/mtg/pack/triggers-conditions.md): TriggerDef, every trigger event with one line each, and every condition. - [Pack part: Values & costs](https://drawstep.xyz/wiki/mtg/pack/values-costs.md): Every value kind (numbers) and every cost part. - [Pack part: Keyword abilities](https://drawstep.xyz/wiki/mtg/pack/keywords.md): Every parametrised keyword ability and the simple keyword strings. - [Pack part: Layouts, zones, tokens, appearance](https://drawstep.xyz/wiki/mtg/pack/layouts-tokens.md): Layouts and multi-face cards, zones, tokens and token cards, the display-only appearance block. - [Pack part: Custom mechanics](https://drawstep.xyz/wiki/mtg/pack/custom-mechanics.md): The primitives people miss with the printed wording each answers, registered natives, and the honesty ladder for a clause nothing expresses. - [Pack part: Cookbook](https://drawstep.xyz/wiki/mtg/pack/cookbook.md): Complete, engine-validated cards for the hard custom-card patterns. - [Pack part: Worked examples](https://drawstep.xyz/wiki/mtg/pack/examples.md): Complete stock cards: Oracle text, the engine's reading, the JSON. ## Complete reference - [AI pack — the whole reference in one document](https://drawstep.xyz/wiki/drawstep-mtg-ai-pack.md): role, output contract, every topic, worked examples, common mistakes, custom mechanics, cookbook (large; the same text as https://drawstep.xyz/llms-full.txt) - [Index of static documents](https://drawstep.xyz/wiki/index.md): every generated document with a one-line summary and its size ## Optional - [Pokémon TCG table model](https://drawstep.xyz/wiki/drawstep-pokemon-ai-pack.md): the table model of a game without a card-logic schema - [Yu-Gi-Oh! table model](https://drawstep.xyz/wiki/drawstep-yugioh-ai-pack.md): the table model of a game without a card-logic schema - [Other / custom games table model](https://drawstep.xyz/wiki/drawstep-custom-ai-pack.md): free-play table only ## Legal - [Legal overview](https://drawstep.xyz/wiki/legal.md): who runs this server, the free access commitment, and every legal document - [Terms of use](https://drawstep.xyz/wiki/legal/terms.md): The agreement for using this server: who may join, your content, acceptable use, moderation, liability and the law that applies. - [Privacy policy](https://drawstep.xyz/wiki/legal/privacy.md): What personal data this server keeps, why, for how long, who sees it, and your rights — download, delete, complain. - [Third-party services & data sources](https://drawstep.xyz/wiki/legal/third-parties.md): Every outside service — PayPal, Cloudflare Turnstile, AI providers, mempool.space — and the card data sources, with what each receives. - [Cookies & storage](https://drawstep.xyz/wiki/legal/cookies.md): The cookies and browser storage Drawstep uses, why no consent is needed, and how to clear them. - [Accessibility statement](https://drawstep.xyz/wiki/legal/accessibility.md): How accessible Drawstep is (partially conformant with WCAG 2.2 AA), its known limitations and how to report a barrier. - [Intellectual property & fan content](https://drawstep.xyz/wiki/legal/notices.md): Who owns the games, cards and art; the publishers' notices; the free access commitment; removal on request. - [Copyright & takedown](https://drawstep.xyz/wiki/legal/copyright.md): How to report infringing or illegal content (DMCA and Digital Services Act notices), counter-notices and the repeat-infringer policy. - [Donations & supporter terms](https://drawstep.xyz/wiki/legal/donations.md): PayPal donations (one-time or monthly) and prepaid Bitcoin donations, supporter perks, cancelling, refunds — and what always stays free. - [Credits & attributions](https://drawstep.xyz/wiki/legal/credits.md): The publishers, card data sources, deck-design artists, fonts and open-source software behind Drawstep, with their licences.