# Drawstep engine · Keyword abilities & simple keywords · `companion` > Companion — Companion — [condition] (CR 702.139): `restriction` is the printed condition, `condition` the same rule as deck validation enforces it. 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/keywords#companion ## Where it goes One entry of `keywordAbilities[]`: `{ "keyword": "companion", … }`. Plain keywords with no parameter are strings in `keywords[]`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `restriction` | `string` | yes | The printed companion condition, verbatim | | `condition` | `{ kind: "permanentManaValueAtMost"; max: number } \| { kind: "deckSizeAboveMinimum"; amount: number } \| { kind: "creatureTypes"; subtypes: string[] } \| { kind: "noRepeatedManaSymbols" } \| { kind: "perm …` | no | A companion's deck-building condition, checked against the starting deck (CR 702.139a-b) | ## Minimal form ```json {"keyword":"companion","restriction":""} ``` The engine reads that minimal form as: “Companion — ”. ## Related - [Keyword abilities & simple keywords](https://drawstep.xyz/wiki/mtg/keywords.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive