search_by_colors
Search Magic: The Gathering cards by color combinations using exact, contains, or at-most matching modes. Filter by printed colors or color identity, including colorless options.
Instructions
Find cards by colors or color identity.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
colors | No | ||
identity | No | Filter by color identity instead of printed colors | |
include_colorless | No | Include colorless cards | |
mode | No | contains | |
page | No |
Input Schema (JSON Schema)
{
"properties": {
"colors": {
"items": {
"enum": [
"W",
"U",
"B",
"R",
"G"
],
"type": "string"
},
"maxItems": 5,
"minItems": 0,
"type": "array"
},
"identity": {
"description": "Filter by color identity instead of printed colors",
"type": "boolean"
},
"include_colorless": {
"description": "Include colorless cards",
"type": "boolean"
},
"mode": {
"default": "contains",
"enum": [
"exact",
"contains",
"at_most"
],
"type": "string"
},
"page": {
"minimum": 1,
"type": "integer"
}
},
"type": "object"
}