export_asset_contract
Exports Rhino objects as a GLB plus an .almond.json contract that preserves dimensions, anchor plane, clearances, and material IDs so other apps can restore full asset meaning.
Instructions
Exports Rhino objects as a portable Almond asset: a GLB plus an asset contract (.almond.json) carrying what the file cannot.
The contract records real dimensions in mm, the anchor and support plane, clearances, and the Almond material_id of every object - so another application (Blender, Unreal, another Rhino) can restore full meaning even though glTF drops per-object metadata. Pair with import_asset_contract on the receiving side.
Args: guids: Rhino object GUIDs to export (from execute_rhino_script). asset_id: Stable id, e.g. "canopy-pavilion-01" (letters, digits, . _ -). name: Human-readable name; defaults to asset_id. output_dir: Destination folder. Default: /exchange. Returns: JSON with the glb path, contract path, and recorded dimensions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guids": "<guids>",
"asset_id": "<asset_id>"
},
"name": "export_asset_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| guids | Yes | ||
| asset_id | Yes | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |