search_parts
Find parts across the catalog's current releases: website sections (pricing, hero, footer…), app screens and components, mobile screens. Filter by kind, type, variant, purpose and product. Returns part identifiers for get_part, labels and thumbnails; never source.
Ask for it in plain words#
Inputs#
| Name | Type | Required | What it does |
|---|---|---|---|
query | string | no | Words in the part's label, type, variant, purpose, page or product. Leave it out to list. |
kind | string | no | Only one kind: website-section, website-frame (nav, footer, closing call to action…), app-screen, app-component or mobile-screen. |
type | string | no | Only one part type, for example pricing, hero, footer, app-screen, kpi or mobile-screen. |
variant | string | no | The type's variant key, for example C for a pricing layout, S1 for an app shell, or B2 (or B2.peek) for a mobile archetype. Case does not matter. |
purpose | string | no | App screens only: what the screen is for, for example settings, billing or analytics. |
product | string | no | Only one product's parts, for example sotto. |
limit | integer | no | How many parts per page: 1 to 50, default 20. |
cursor | string | no | From the previous result's nextCursor, for the next page. |
Example#
Results never carry source: fetch a part with get_part.
The example ran over Orvio's synthetic test catalog (a product called Fixture Studio), so its names and values differ from the products you will see. The shape is exactly what the server returns.
Request
{ "type": "hero", "limit": 2 }
Result (shortened)
{ "parts": [ { "identifier": "fixture-studio/parts/index-hero", "id": "index-hero", "product": "fixture-studio", "productName": "Fixture Studio", "version": "1.1.0", "page": "index", "kind": "website-section", "type": "hero", "variant": "C", "purpose": null, "label": "Two halves, copy and a full-bleed photo", "thumbnail": "https://media.orvio.test/parts/fixture-studio/50e25255620d7df4ec0fe191627da01bcd…", "sourcePath": "index.html", "range": { "startLine": 14, "endLine": 18 }, "alsoOn": [] } ], "total": 1, "nextCursor": null }
Left out of the example: release.
What comes back#
| Field | What it holds |
|---|---|
parts | The parts on this page: identifier (for get_part), product, page, kind, type, variant, purpose, a readable label, the thumbnail's address, and the file and line range that hold it. Parts not sorted yet are never listed. |
total | How many parts matched in all. |
nextCursor | Pass it as cursor for the next page, or null on the last page. |
warnings | Heads-ups that do not stop the call, such as a membership payment problem. Usually empty. |
Every result also carries what the request needs to be checked: the release (product, version, published date), the licence and notes, when they apply.
Paging#
When nextCursor is not null, call again with cursor set to it. A cursor belongs to your account, to that call's inputs and to that release, and it expires after 60 minutes. After a new release it answers release_replaced. See Limits and pagination.
Errors#
| Code | Means | What to do |
|---|---|---|
product_unavailable | No listed product has that identifier. | Search the catalog with search_products. |
release_withdrawn | The whole product was taken down for now. | Search the catalog for something similar with search_products. |
release_replaced | A newer release was published since the version you named or the cursor you used. | Call the tool again without a release to use 0.1.3. |
invalid_input | The arguments do not match the tool's schema, or the cursor is not valid. | Fix the input and call the tool again. |
HTTP 401, 403 or 429 | Before the tool runs: the sign-in is not valid, the membership does not allow access, or there were too many requests. | See Errors and fixes. |
Every tool can also answer service_unavailable and integrity_error: try again in a few minutes.