get_part
One part (a website section, an app screen or component, a mobile screen) with the source files it needs: the page file that holds it with the part's line range, and the page's styles, scripts, assets and token sources. An old part id is followed to its current part (resolvedFrom).
Ask for it in plain words#
Inputs#
| Name | Type | Required | What it does |
|---|---|---|---|
identifier | string | no | The part's identifier from search_parts, for example sotto/parts/index-pricing. An old id is followed to the part it became. |
part | string | no | Instead of identifier: the part id, for example index-pricing (with product). |
product | string | no | Instead of identifier: the product, used with part. |
release | string | no | Optional pin: the version you saw in an earlier result. |
include_contents | boolean | no | Return the files' contents. Default true. |
include_tokens | boolean | no | Also include the files that define the design tokens the page uses. Default true. |
depth | integer | no | How many levels of imports to follow: 0 to 8, default 8. 0 is the page file that holds the part only. |
cursor | string | no | From the previous result's nextCursor. |
Example#
include_contents is false here, so the files are listed without their contents.
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
{ "identifier": "fixture-studio/parts/index-hero", "include_contents": false }
Result (shortened)
{ "part": { "identifier": "fixture-studio/parts/index-hero", "id": "index-hero", "product": "fixture-studio", "page": "index", "pageIdentifier": "fixture-studio/page/index", "kind": "website-section", "type": "hero", "variant": "C", "variantLabel": "Two halves, copy and a full-bleed photo", "purpose": null, "sourcePath": "index.html", "range": { "startLine": 14, "endLine": 18 }, "alsoOn": [], "parent": null, "folded": [], "hash": "50e25255620d7df4ec0fe191627da01bcd0763fee2ed04e10f97f643c7439f8a", "thumbnail": "https://media.orvio.test/parts/fixture-studio/50e25255620d7df4ec0fe191627da01bcd…", "typeSource": "marker" }, "files": [ { "path": "source/index.html", "sourcePath": "index.html", "role": "page-entry", "range": { "startLine": 14, "endLine": 18 }, "content": null, "bytes": 775, "sha256": "187ba7c33ce9…" }, { "path": "source/css/site.css", "sourcePath": "css/site.css", "role": "style", "content": null, "bytes": 398, "sha256": "f90faae01d0d…" }, { "path": "source/images/logo.svg", "sourcePath": "images/logo.svg", "role": "asset", "rights": { "disposition": "cleared", "attribution": null }, "content": null, "bytes": 192, "sha256": "f3fda63be86c…" } ], "closure": { "basis": "package-indexes", "complete": false, "notes": [ "Local imports that the release indexes do not record are not included. Read them…", "A part is a range of its page file: the whole page file comes with the part's li…" ], "unresolved": [] }, "licence": { "id": "LicenseRef-Orvio-Fixture-Synthetic", "path": "licenses/LICENSE.md", "thirdPartyNotices": null }, "release": { "product": "fixture-studio", "version": "1.1.0", "releaseId": "f1000000-0000-4000-8000-000000000002", "publishedAt": "2026-10-05T00:00:00Z" } }
Left out of the example: nextCursor.
What comes back#
| Field | What it holds |
|---|---|
part | Identifier, type, variant and its label, purpose, page, the file and line range that hold the part, its thumbnail, and resolvedFrom when an old id led here. |
files | The page file that holds the part (with the part's range) and the files that page needs, each with its role, path, size and SHA-256. |
closure | How the list was made, and whether it is complete: basis, complete, notes, unresolved, packages, externals. |
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. |
part_not_found | The current release has no part with that id, and no earlier release's part leads to one; up to five near ids come with it. | Use one of: sotto/parts/index-pricing, or search with search_parts. |
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.