asset
5 public commands in this category.
delete_asset
Remove an asset from the registry (does not affect entities already placed in scene)
Scope:
scene:write. Token cost: 0.- assetId string (required)
- Asset ID to remove
import_gltf
Import a glTF/GLB 3D model file (base64-encoded data) into the asset registry and scene
Scope:
scene:write. Token cost: 0.- dataBase64 string (required)
- Base64-encoded glTF/GLB file data (a data:model/gltf-binary;base64, header is accepted). A model whose images are KTX2 or Basis Universal (KHR_texture_basisu), or that is not a readable glTF/GLB, is refused with the reason; use PNG or JPEG textures.
- name string (required)
- Display name for the imported model
load_texture
Load a texture image and assign it to a material slot on an entity
Scope:
scene:write. Token cost: 0.- dataBase64 string (required)
- Image data as a data URL (data:image/png;base64,... or data:image/jpeg;base64,...) or raw base64, which is typed by its first bytes: a PNG signature is image/png, a JPEG marker is image/jpeg, and anything else is refused. Only PNG and JPEG are accepted; any other format, including KTX2, is refused with the accepted formats named.
- entityId string (required)
- Entity to apply texture to
- name string (required)
- Display name for the texture
- slot string (required)
- Material texture slot
place_asset
Spawn a new instance of a previously imported asset in the scene
Scope:
scene:write. Token cost: 0.- assetId string (required)
- Asset ID from the registry
remove_texture
Remove a texture from a material slot on an entity
Scope:
scene:write. Token cost: 0.- entityId string (required)
- Entity to remove texture from
- slot string (required)
- Material texture slot to clear