# Drawstep engine · Values · `handSize` > Hand size — e.g. “the number of cards in your hand”. 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/values#handSize ## Where it goes A number: `{ "kind": "handSize", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | ## Minimal form ```json {"kind":"handSize"} ``` The engine reads that minimal form as: “the number of cards in your hand”. ## Stock examples - **Diviner's Portent** — “Roll a d20 and add the number of cards in your hand.” ```json {"kind":"handSize","who":"you"} ``` - **Half Hand** — “Target opponent discards half the cards in their hand, rounded up.” ```json {"kind":"handSize","who":"current"} ``` - **Current Draw** — “Each player draws cards equal to the number of cards in their hand.” ```json {"kind":"handSize","who":"current"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive