# Drawstep engine · Conditions · `castFrom` > Cast from — The source spell was cast from this zone. Set owner to you when the printed rule requires your own hand or other zone. 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/conditions#castFrom ## Where it goes A condition: `{ "kind": "castFrom", … }` — in an `if` effect, a trigger's `condition` (intervening if), a static's `condition` ("as long as"), an activated ability's `onlyIf`, a replacement's `unless`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `zone` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | yes | A zone name (battlefield, hand, graveyard, library, exile, stack, command) | | `owner` | `"you"` | no | Whose zone (player selector) | ## Minimal form ```json {"kind":"castFrom","zone":"battlefield","owner":"you"} ``` The engine reads that minimal form as: “this spell was cast from the battlefield”. ## Stock examples - **Exile Insight** — “” ```json {"kind":"castFrom","zone":"exile"} ``` - **Lifestream's Blessing** — “Draw X cards, where X is the greatest power among creatures you controlled as you cast this spell. If this spell was cast from exile, you gain twice X life.” ```json {"kind":"castFrom","zone":"exile"} ``` - **Ignite the Future** — “Exile the top three cards of your library. Until the end of your next turn, you may play those cards. If this spell was cast from a graveyard, you may play cards this way without paying their mana costs.” ```json {"kind":"castFrom","zone":"graveyard"} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive