# Drawstep engine · Effects · `tapOrUntap` > Tap or untap — CR 608.2d: choose to tap or untap the declared target on resolution. 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#tapOrUntap ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "tapOrUntap", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | CR 608.2d: player choosing tap or untap; defaults to the ability controller | ## Minimal form ```json {"effect":"tapOrUntap","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` The engine reads that minimal form as: “tap or untap target creature”. ## Stock examples - **Flexible Touch** — “You may tap or untap target creature.” ```json {"effect":"tapOrUntap","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` - **Curse of Inertia** — “Whenever a player attacks enchanted player with one or more creatures, that attacking player may tap or untap target permanent of their choice.” ```json {"effect":"tapOrUntap","target":{"of":"object","mode":"chosen","chooser":"triggeringPlayer"},"who":"triggeringPlayer"} ``` ## 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