Vectreal
v3.5.0Upload, publish and embed 3D models on any website from your agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_docs Search the Vectreal docs
Finds the Vectreal documentation pages that best match a query, with an excerpt of each. Read a whole page with read_doc. Needs no sign-in.
| Parameter | Type | Description |
|---|---|---|
query * | string | What to look for. |
limit | integer |
read_doc Read a Vectreal docs page
One Vectreal documentation page as markdown, by the slug search_docs answers with (such as "getting-started"). Needs no sign-in.
| Parameter | Type | Description |
|---|---|---|
slug * | string |
whoami Who am I
The signed-in user, the organization the session acts in, its role, plan and granted scopes.
list_projects List projects
The projects in the session's organization.
create_project Create a project
Creates a project in the session's organization.
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_scenes List scenes
A project's scenes, the most recently edited first, with each one's status.
| Parameter | Type | Description |
|---|---|---|
projectId | string | The project; defaults to the one vectreal init linked. |
create_scene_from_file Create a scene from a GLB
Uploads a local GLB as a new draft scene, stored as it is (the "original" optimization preset). It has no thumbnail or baked shadow until it is first opened in the publisher. Publish it with publish_scene.
| Parameter | Type | Description |
|---|---|---|
path * | string | A GLB file on this machine; relative paths start at the project. |
name | string | The scene name; defaults to the file name. |
projectId | string | The project; defaults to the one vectreal init linked. |
describe_model Describe a model
A local GLB's size, meshes, materials and animation clips, read from the file without rendering it. `viewer` gives the scale and bounds where the viewer places the model (centered on x and z, resting on y = 0), the space hotspots and cameras use; pass sceneId to apply that scene's normalization, which is otherwise off.
| Parameter | Type | Description |
|---|---|---|
path * | string | A GLB file on this machine; relative paths start at the project. |
sceneId | string | A scene made from this file, whose normalization the viewer applies. |
get_scene_settings Read scene settings
Every settings section of a scene (lighting, environment, controls, bounds, shadows, presentation, camera, hotspots, interactions, animation, normalization), defaults filled in.
| Parameter | Type | Description |
|---|---|---|
sceneId * | string | The scene, as list_scenes names it. |
update_scene_settings Change scene settings
Replaces the lighting, environment, controls, bounds, shadows, presentation, camera or hotspots sections sent; each section sent replaces the stored one whole, so read it with get_scene_settings and send it back changed. Look sections are filled with defaults for the keys they leave out; camera and hotspots are not: a hotspot missing a required field is refused, and a camera without position, target and fov has no view of its own, so send all three. Interactions, animation and normalization are read-only here. Lighting supersedes environment and shadows: those two only show on a scene with no…
publish_scene Publish a scene
Compresses a local GLB the way the publisher exports it (Draco geometry and KTX2 textures, each on unless turned off) and publishes it as what the scene's visitors load. Send the GLB the scene was created from. Publishing again replaces it. Ambient occlusion and studio lights the scene's lighting asks to bake are not baked here, which needs a GPU: the result warns, and publishing from the Publisher bakes them.
| Parameter | Type | Description |
|---|---|---|
path * | string | A GLB file on this machine; relative paths start at the project. |
sceneId * | string | The scene, as list_scenes names it. |
draco | boolean | Compress geometry with Draco. |
ktx2 | boolean | Encode textures to KTX2. |
unpublish_scene Take a scene offline
Takes a published scene offline: its embeds stop showing it until it is published again.
| Parameter | Type | Description |
|---|---|---|
sceneId * | string | The scene, as list_scenes names it. |
get_embed_snippet Get the embed snippet
The iframe and SDK snippets for a published scene, plus its preview URL. Creates an embed key when the scene's project has none that works, and adds any domains given to the sites allowed to show that project's embeds (with none, the embed shows on no customer site).
| Parameter | Type | Description |
|---|---|---|
sceneId * | string | The scene, as list_scenes names it. |
domains | array | Sites to allow, such as example.com or *.myshopify.com. |