# Drawstep engine · Statics & layers · `grantKeywordAbility` > Grant keyword ability — CR 112.1, 613.1f: the affected objects have this parametrised keyword ability; spell groups also read it during casting (e.g. split second, CR 601.2). 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/statics#grantKeywordAbility ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "grantKeywordAbility", … } }`. Applied continuously through the layer system. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `to` | `TargetDef` | yes | What it applies to (TargetDef) | | `keywordAbility` | `KeywordAbilityDef` | yes | A parametrised keyword ability (KeywordAbilityDef: `{ "keyword": "ward", "cost": { … } }`) | ## Minimal form ```json {"type":"grantKeywordAbility","to":{"of":"object","mode":"self"},"keywordAbility":{"keyword":"prowess"}} ``` The engine reads that minimal form as: “~ has prowess”. ## Stock examples - **Hand Miracle Study** — “” ```json {"type":"grantKeywordAbility","to":{"of":"object","mode":"all","zone":"hand","filter":{"anyTypes":["Instant","Sorcery"],"owner":"you"}},"keywordAbility":{"keyword":"miracle","cost":{"mana":"{0}"}}} ``` - **Graveyard Retrace Study** — “” ```json {"type":"grantKeywordAbility","to":{"of":"object","mode":"all","zone":"graveyard","filter":{"anyTypes":["Instant","Sorcery"],"owner":"you"}},"keywordAbility":{"keyword":"retrace"}} ``` - **Hand Ninjutsu Study** — “” ```json {"type":"grantKeywordAbility","to":{"of":"object","mode":"all","zone":"hand","filter":{"types":["Creature"],"owner":"you"}},"keywordAbility":{"keyword":"ninjutsu","cost":{"mana":"{0}"}}} ``` ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.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