swu_search_cards
Search Star Wars Unlimited cards with free-text queries or structured filters by aspect, type, arena, rarity, set, trait, cost, power, and HP. Get relevant cards with sorting and limit options.
Instructions
Search Star Wars Unlimited cards using natural text and optional structured filters. Pass query for free-text matching; use filters to constrain by aspect, type, arena, rarity, set, trait, or numeric stats (cost/power/hp). Returns a typed SearchResult.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max cards to return (1-100). | |
| order | No | Sort field for SWU-DB. | name |
| query | No | Free-text search; '*' or empty matches all cards (filtered). | |
| filters | No | Structured filter object — see SearchFilters for valid fields and enums. | |
| direction | No | Sort direction. | asc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | ||
| query | Yes | Compiled SWU-DB query string actually sent | |
| source | No | api | |
| warning | No | Set when the API failed and we fell back to local | |
| total_matches | Yes | ||
| returned_count | Yes |