# Drawstep engine · Effects · `optional` > Optional — CR 608.2d: optional instructions, with current bound to the deciding player. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/effects#optional ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "optional", … }`. Steps resolve in order. Printed words that point here (search aliases): you may. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | CR 608.2d: each selected player makes their own yes/no choice; defaults to you. You in the body remains the source's controller | | `target` | `PlayerTargetDef` | no | CR 115.1: declared player target when who is target | | `prompt` | `string` | no | Prompt text shown to the deciding player | | `then` | `EffectDef[]` | yes | Effects that follow ("then …", "if you do …") | | `else` | `EffectDef[]` | no | Effects on declining the optional action (CR 608.2d) | | `onceEachTurn` | `boolean` | no | "Do this only once each turn": the ability still triggers and resolves, but once the action has been taken this turn the choice is no longer offered (declining keeps it available later in the turn) | ## Minimal form ```json {"effect":"optional","then":[]} ``` The engine reads that minimal form as: “you may ”. ## Stock examples - **Rune Crown Witness** — “” ```json {"effect":"optional","then":[{"effect":"searchLibrary","who":"you","filter":{"subtypes":["Rune"]},"zones":["library","hand","graveyard"],"optionalZones":true,"then":[{"effect":"moveTo","target":{"of":"object","mode":"affected"},"destination":"battlefield","attachedTo":{"of":"object","mode":"self"}}],"min":1,"max":1,"shuffle":true}]} ``` - **Flexible Touch** — “You may tap or untap target creature.” ```json {"effect":"optional","then":[{"effect":"tapOrUntap","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}}]} ``` - **Sylvan Echoes** — “Whenever you clash and win, you may draw a card.” ```json {"effect":"optional","then":[{"effect":"drawCards","who":"you","amount":1}]} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the steps a nested `effects` / `then` list may contain - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive