/boxel-cli:searchfrom boxel-cli
Searches across Boxel realms by card type, field value, or full-text query. Use after listing realm contents with boxel file list to discover card module URLs.
Ships in boxel-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wraps boxel search, which sends a query to the realm-server's _federated-search endpoint and aggregates results across realms the active profile can read.
| Ask | Run |
|---|---|
| "what's in this realm?" | boxel file list --realm <url> — cheap; lists every file (see Discovery below) |
| "find all BlogPosts" | boxel search with a type filter (see below) |
| "search for X across my realms" | boxel search with a contains filter |
| "search just one realm" | add --realm <realm-url> (repeatable) |
| "give me JSON I can pipe" | add --json |
To see what a realm holds — or to find the module URL a type/on filter needs — use boxel file list --realm <url>, not search. It's a flat file listing (the realm's _mtimes), far cheaper than a query, and it gives you exactly what discovery needs:
.gts paths are the card definitions — each one is a card type. Its module URL for a type filter is just <realm-url><path-without-.gts>..json paths are the instances.boxel search is for querying card data once you know the type/field you want — not for "list everything." Reach for it after boxel file list has told you the module URL.
Queries are JSON, passed via --query. The shape mirrors the _search API:
{
"filter": {
"type": {
"module": "https://app.boxel.ai/owner/realm/blog-post",
"name": "BlogPost"
}
}
}
With a field filter:
{
"filter": {
"on": {
"module": "https://app.boxel.ai/owner/realm/product",
"name": "Product"
},
"contains": { "name": "laptop" }
}
}
Operations: eq, contains, range, not, type, every (AND), any (OR).
Generated from the boxel-cli Commander tree by pnpm build:plugin. Edit prose outside the generated block — never inside it.
boxel searchFederated search across realms using a JSON query
Options:
--realm <realm-url> — Realm URL to search (repeatable)--query <json> — JSON query object (as a string). Omit to list every card in the realm(s).--json — Output raw JSON responsetype or on filter requires the card's full module URL. If you don't know it yet, run boxel file list to see the realm's .gts modules — don't guess the URL, and don't use search to enumerate.on scope. eq / contains / range must be wrapped with on: { module, name } (see the field-filter example) — a bare {"filter":{"eq":{...}}} has no card type to resolve the field against.module in a type filter must be the full HTTPS URL of the card definition (no relative paths). Compose it from the realm URL plus the kebab-case file name without .gts.boxel profile and boxel realm list.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cardstack/boxel --plugin boxel-cli10 skills in this plugin
/boxel-apiUse when calling Boxel realm-server APIs from code — primarily federated search across realms. Documents the boxel-cli programmatic surface (`BoxelCLIClient`) and the matching CLI commands. Read this whenever you need to query a realm's index./boxel-commandUse when running a Boxel host command via the realm server's prerenderer — invoking commands like `get-card-type-schema`, `evaluate-module`, `instantiate-card`, or any other module exposed at `@cardstack/boxel-host/commands/.../default`. Documents `boxel run-command` and the matching `client.runCommand()` method./boxel-file-structureBoxel File Structure RulesOther plugins' skills for the same job