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
- 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)
- Base64-encoded image data (PNG/JPG)
- 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