# Drawstep engine · Effects · `copyAbility` > Copy ability — CR 707.10: copy an activated or triggered ability and its choices; optionally choose new targets. 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#copyAbility ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "copyAbility", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `amount` | `ValueDef` | no | How many copies ("copy … twice"); default one | | `newTargets` | `boolean` | no | The copy may have new targets chosen for it | ## Minimal form ```json {"effect":"copyAbility","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` The engine reads that minimal form as: “copy target creature”. ## Stock examples - **Ability Copy Witness** — “” ```json {"effect":"copyAbility","target":{"of":"ability","mode":"chosen"}} ``` - **Ability Echo** — “Copy target activated or triggered ability you control. You may choose new targets for the copy.” ```json {"effect":"copyAbility","target":{"of":"ability","mode":"chosen","ability":{"controller":"you"}},"newTargets":true} ``` - **Ability Reflection** — “Copy target activated or triggered ability you control from a creature source. You may choose new targets for the copy.” ```json {"effect":"copyAbility","target":{"of":"ability","mode":"chosen","ability":{"controller":"you","source":{"types":["Creature"]}}},"newTargets":true} ``` ## 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) - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive