# Drawstep engine · Effects · `counterSpell` > Counter spell — CR 701.5, 614.15: counter a spell; if successfully countered, put it in the specified zone instead of its owner's graveyard (library defaults to top unless position specifies otherwise). 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#counterSpell ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "counterSpell", … }`. Steps resolve in order. Printed words that point here (search aliases): counter target spell counterspell that spell's mana value. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `destination` | `"exile" \| "hand" \| "library"` | no | Where the countered spell goes instead of the graveyard (library = top) | | `position` | `"top" \| "bottom" \| { chooser: "you" }` | no | CR 401.4, 614.15: placement for a counter into library; chooser chooses top or bottom only if the counter succeeds | ## Minimal form ```json {"effect":"counterSpell"} ``` The engine reads that minimal form as: “counter target spell”. ## Stock examples - **Counter Witness** — “” ```json {"effect":"counterSpell","target":{"of":"spellOrAbility","mode":"chosen"}} ``` - **Force of Will** — “” ```json {"effect":"counterSpell","target":{"of":"spell","mode":"chosen"}} ``` - **Counter Test** — “” ```json {"effect":"counterSpell","target":{"of":"spell","mode":"chosen"}} ``` ## 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) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive