three.ws Scenes

v0.2.2
io.github.nirholas/scene-mcp Checked 9 hours ago Published 1 month ago

Compose a placed 3D diorama from one sentence, export a forged world, browse saved scenes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

compose_scene Compose a 3D diorama plan from one sentence

Compose a tiny 3D diorama from one short sentence. Returns a PLAN: an evocative title, a mood (dawn/day/dusk/night), ground + island type, a color palette, and 2-8 placed objects, each with a single-object forge prompt, position, scale and rotation. No meshes are generated yet and nothing is saved; feed the plan to the three.ws diorama page (or /api/forge per object) to build the world. Read-mostly but runs live LLM inference.

ParameterTypeDescription
prompt *stringOne short sentence describing the world to build, e.g. "a lonely lighthouse on a stormy cliff".

get_scene Fetch a saved diorama by id

Fetch one saved diorama (a fully-forged 3D world) by its id, including its title, mood, palette, ground, and the placed objects with their GLB URLs. Returns the orbitable viewer URL. Read-only.

ParameterTypeDescription
id *stringThe diorama id returned when the world was saved.

list_scenes List recent or featured dioramas

Browse the public diorama gallery: the most recent saved worlds, or the featured set. Returns a list of cards (id, title, mood, thumbnail/preview, view count) plus each world's viewer URL. Read-only.

ParameterTypeDescription
limitintegerHow many to return (1-50, default 24).
liststringWhich gallery to read: newest saved worlds ("recent") or the curated set ("featured").

export_scene Export a forged diorama as one GLB scene

Merge an already-forged diorama (objects with real glbUrl values, e.g. from your own forging after compose_scene, or fetched via get_scene) into ONE glTF 2.0 binary: every object becomes a named, selectable node, plus a real ground disc and mood-tuned lighting. Returns the merged GLB URL and a ready-to-open three.ws Scene Studio link. Objects that never forged are skipped and reported rather than treated as a failure; a partial world still exports. Requires the target deployment to have object storage configured (three.ws does).

ParameterTypeDescription
diorama *objectThe diorama object to export, same shape returned by compose_scene/get_scene, with each object you want included carrying status:"ready" and a real glbUrl.

build_world Build a complete 3D world from one sentence (no browser needed)

One sentence → a fully forged, exported 3D world, entirely server-side: composes the scene plan, forges every object on the free text→3D lane, and merges the result into one GLB with named, selectable nodes plus ground and lighting. Returns the populated diorama, the merged GLB URL, and a ready-to-open Scene Studio link. This is the whole progressive /diorama browser flow collapsed into one call; it can take a couple of minutes for a full object set. Partial forges are not failures: whatever forged is exported, and `skipped` names anything that did not.

ParameterTypeDescription
prompt *stringOne short sentence describing the world to build, e.g. "a neon alley with a food cart and two streetlights".