Build physics-checked scenes from a sentence or a JSON spec: objects, liquids, grains, cloth, cables
composeBuild scenes from a sentence or spec: pick objects from card libraries, place them with support and clearance rules, run alloy.check after each placement, and fix flagged issues.
Instructions
Pick objects from the card library (Alloy's, alloy-assets, every imported library and your own folders), place them with support, clearance and clutter rules, run alloy.check after every placement and a full check at the end, and fix what the checks flag. Liquids and grains fill containers by volume or mass ('a mug with 200 ml of water'), pour as a stream, or pile at their angle of repose; cloth lies flat, drapes or hangs over the table edge; cables have a length, a gauge and ends plugged into objects. Returns every scene with its objects, soft items (amounts, routes, estimates), check report and metrics. Example arguments: {"sentence": "a mug and two cubes on a table", "variations": 1, "out": "my_scenes"}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | folder to save scenes/<name>.yaml and compose.json | |
| area | No | x0 y0 x1 y1 (m): where objects may go | |
| seed | No | seed (same seed, same scene) | |
| spec | No | a SceneSpec as JSON instead of a sentence (alloy.compose.parse gives one) | |
| check | No | full: load checks per placement + a full check; load; none | full |
| device | No | 'cpu' or 'cuda:0' (default: the GPU if there is one) | |
| jitter | No | each world moves the free objects a little | |
| robots | No | robot files (MJCF) to stand at the table edge | |
| worlds | No | parallel worlds in the saved scene cards | |
| library | No | your card folders, searched first (e.g. from alloy create) | |
| sentence | No | the scene in words, e.g. 'three nuts in a tray on a cluttered table' | |
| variations | No | extra scenes with new poses and objects |