Import asset
asset_importImport a validated uploaded asset into the current project head as a new revision. Use upload_create then upload_complete before this tool; for library slugs or generated provider models use asset_library_import. Stale base revisions reject with REVISION_CONFLICT. Returns an asynchronous job handle; job_wait/job_get reveal success, errors and the committed revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Uploaded file format. auto (default) sniffs file bytes; specify gltf or stl explicitly for those formats. font covers supported uploaded font files. | auto |
| assetId | Yes | Validated ast_… asset ID returned by upload_complete; quarantined or rejected uploads cannot be imported. | |
| placement | No | Requested placement policy; currently both values preserve importer-native transforms. Neither recenters the asset or moves it to the scene cursor. | origin |
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| unitPolicy | No | Requested unit convention; currently reserved, with importer-native units preserved for either value. Inspect dimensions and scale explicitly after import. | meters |
| 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. | |
| targetCollection | No | Existing destination collection name or ID, up to 64 characters. If absent or not found, importer collection links are preserved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes |