scryfall_random
Fetch a random Scryfall card, optionally filtered by a search expression, and return it as JSON, plain text, or an official image URL.
Instructions
Get a random Scryfall card. Get one random printing, optionally limited by a Scryfall search expression. Use q for a color, set, type, tag, or any other native search expression. Choose JSON, plain text, or the official image URL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scryfall_random"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional Scryfall search expression up to 1,000 characters | |
| face | No | Select the back of a double-faced card for image output. Omission selects the front | |
| format | No | Choose JSON, plain text, or a card image URL | |
| pretty | No | Indent the JSON response | |
| version | No | Select an image variant. The default is display |