# Drawstep engine · Costs · `exileTop` > Exile top — CR 401.2, 118.12: exile this many cards from the top of your library as payment ("Exile the top card of your library: …"); payable only with that many cards in the library. 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/costs#exileTop ## Where it goes One part of a `cost` object (an activated ability's cost, `mayPay`, `unlessPays`, an `additionalCost`): `{ "exileTop": … }`; parts combine freely. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `exileTop` | `ValueDef` | no | CR 401.2, 118.12: exile this many cards from the top of your library as payment ("Exile the top card of your library: …"); payable only with that many cards in the library | ## Stock examples - **Royal Herbalist** — “{2}, Exile the top card of your library: You gain 1 life.” ```json {"mana":"{2}","exileTop":1} ``` ## Related - [Costs](https://drawstep.xyz/wiki/mtg/costs.md) — the whole topic - [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