# Drawstep engine · Triggers · `endStep` > End step — Beginning of an end step. 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/triggers#endStep ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "endStep", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. Printed words that point here (search aliases): at the beginning of your end step at the beginning of each end step at the end of each end step. ## Fields No fields besides the discriminator. ## Stock examples - **Shift Witness** — “” ```json {"event":"endStep","by":"any"} ``` - **Sinister Gnarlbark** — “At the beginning of your end step, draw a card and blight 1.” ```json {"event":"endStep","by":"you"} ``` - **Psychic Vortex** — “At the beginning of your end step, sacrifice a land and discard your hand.” ```json {"event":"endStep","by":"you"} ``` ## Related - [Triggers](https://drawstep.xyz/wiki/mtg/triggers.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive