Import a library asset
asset_library_importImport a library asset into a project as a new revision. Returns a job handle. Use only after the user has chosen the asset/action or delegated source selection; search and asset_preview can present options without importing or creating a project. source=polyhaven (CC0): HDRIs become the world environment, models join the scene, texture sets become a wired PBR material (applyToObjects assigns it). source=sketchfab: slug is the model uid (requires the org's Sketchfab token). source=hyper3d / hunyuan3d / tripo3d: slug is a finished generation taskUuid from asset_generate_3d. Scale generated/Sketchfab models on import with targetSize (largest dimension in meters — chair≈1.0, table≈0.75, car≈4.5, person≈1.7).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| type | No | model | |
| source | No | polyhaven | |
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| resolution | No | 2k | |
| targetSize | No | ||
| materialName | No | ||
| applyToObjects | No | ||
| baseRevisionId | No | "HEAD" (default) targets the project's current head. Mutations MUST build on the head: passing an older revision is rejected with REVISION_CONFLICT, since history is linear. To continue from an older scene, revision_restore it forward first. | HEAD |
| idempotencyKey | Yes | Stable caller-chosen key for safe retries of this same request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes |