Make a validated object card from your mesh, a photo or a text description
createConvert a mesh, photo, or text into a drop-tested object card with a watertight mesh, GLB visual, mass/friction/restitution, and labelled estimates for simulation.
Instructions
Turn a mesh file, a photo or a text into an object card with a repaired watertight mesh, convex hulls, a visual GLB, and mass, friction and restitution with their sources (USER, CITED, LIBRARY or ESTIMATE with a range). Nothing is refused for a missing citation: estimates are labelled and listed under 'verify'. The card is drop-tested with alloy.check and written to out (use it with alloy.compose or Scene.add_object).
Example arguments: {"mesh": "part.stl", "units": "mm", "material": "steel", "out": "my_objects"}
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": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up | No | the mesh's up axis | z |
| out | No | card folder to write to | my_objects |
| mass | No | mass in kg (default: cited category values or an ESTIMATE) | |
| mesh | No | mesh file: OBJ, STL, GLB/GLTF, PLY, or MJCF/URDF/USD | |
| name | No | card name, snake_case (default: from the file or text) | |
| size | No | real longest side in metres (default: inferred, or the category's typical size) | |
| text | No | a description, e.g. 'a red ceramic coffee mug' (needs a 3D generator) | |
| check | No | run the alloy.check drop test | |
| photo | No | a photo of the object (needs a 3D generator: $ALLOY_GEN3D_URL or a GPU) | |
| units | No | the mesh's units | |
| device | No | 'cpu' or 'cuda:0' for the drop test (default: the GPU if there is one) | |
| category | No | what it is (mug, bowl, wrench...): improves the estimates | |
| material | No | library material name or a word: wood, steel, glass, plastic, ceramic... | |
| mass_source | No | where the mass comes from (datasheet, scale reading) |