get_blender_helper_script
Returns Python scripts for Blender to export selected geometry as Almond assets with GLB or create and assign Almond library materials, so Blender joins the workflow without a dedicated bridge.
Instructions
Returns Python to run inside Blender (via blender-mcp's execute_code) so Blender participates in the Almond workflow without a dedicated bridge.
Actions: "export" - export the current Blender selection as an Almond asset contract + GLB (measured from evaluated mesh data, because Blender inflates curve bounding boxes). "materials" - create Almond library materials in Blender (sRGB values converted to linear) and assign them to named objects, tagging both with almond:* properties.
Args: action: "export" or "materials". asset_id, name, output_dir: for "export" (output_dir defaults to the Almond exchange folder). material_id, object_names: for "materials". Returns: JSON with a "script" field to pass to Blender's execute_code.
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": {
"action": "<action>"
},
"name": "get_blender_helper_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| action | Yes | ||
| asset_id | No | ||
| output_dir | No | ||
| material_id | No | ||
| object_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |