# Drawstep engine · Effects · `seek` > Seek — Seek: a random matching card from your library into 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/effects#seek ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "seek", … }`. Steps resolve in order. ## 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`) | | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `amount` | `ValueDef` | no | How many / how much (integer or ValueDef) | | `fromTop` | `ValueDef` | no | "from among the top N cards of your library": only those N cards, fixed when the effect starts, are candidates | | `shuffle` | `boolean` | no | "…, then shuffle": the seeking player shuffles their library afterwards (CR 701.24) | | `pick` | `"highestManaValue"` | no | "seek a card with the highest mana value among …": only the candidates of greatest mana value are sought, at random among them (Alchemy; CR 202.3) | ## Minimal form ```json {"effect":"seek","pick":"highestManaValue"} ``` The engine reads that minimal form as: “seek a card with the highest mana value among cards in your library”. ## Stock examples - **Seeker of Lands** — “Seek a land card.” ```json {"effect":"seek","who":"you","filter":{"types":["Land"]}} ``` - **Alchemy Seek Fixture** — “Seek two nonland cards.” ```json {"effect":"seek","filter":{"notTypes":["Land"]},"amount":2} ``` - **Alchemy Seek Opponents Fixture** — “Each opponent seeks a card named Grizzly Bears.” ```json {"effect":"seek","who":"eachOpponent","filter":{"name":"Grizzly Bears"}} ``` ## 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