import_generated_asset
Import assets generated by Hyper3D Rodin into Blender using task_uuid or request_id. Ensure successful integration by specifying the object name and relevant identifier based on Hyper3D Rodin mode.
Instructions
Import the asset generated by Hyper3D Rodin after the generation task is completed.
Parameters:
name: The name of the object in scene
task_uuid: For Hyper3D Rodin mode MAIN_SITE: The task_uuid given in the generate model step.
request_id: For Hyper3D Rodin mode FAL_AI: The request_id given in the generate model step.
Only give one of {task_uuid, request_id} based on the Hyper3D Rodin Mode! Return if the asset has been imported successfully.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| request_id | No | ||
| task_uuid | No |
Implementation Reference
- src/blender_mcp/server.py:841-873 (handler)The primary handler for the 'import_generated_asset' MCP tool. It constructs parameters and sends an 'import_generated_asset' command to the connected Blender instance via socket, handling the tool execution logic.@mcp.tool() def import_generated_asset( ctx: Context, name: str, task_uuid: str=None, request_id: str=None, ): """ Import the asset generated by Hyper3D Rodin after the generation task is completed. Parameters: - name: The name of the object in scene - task_uuid: For Hyper3D Rodin mode MAIN_SITE: The task_uuid given in the generate model step. - request_id: For Hyper3D Rodin mode FAL_AI: The request_id given in the generate model step. Only give one of {task_uuid, request_id} based on the Hyper3D Rodin Mode! Return if the asset has been imported successfully. """ try: blender = get_blender_connection() kwargs = { "name": name } if task_uuid: kwargs["task_uuid"] = task_uuid elif request_id: kwargs["request_id"] = request_id result = blender.send_command("import_generated_asset", kwargs) return result except Exception as e: logger.error(f"Error generating Hyper3D task: {str(e)}") return f"Error generating Hyper3D task: {str(e)}"
- src/blender_mcp/server.py:841-841 (registration)The @mcp.tool() decorator registers the import_generated_asset function as an MCP tool.@mcp.tool()
- src/blender_mcp/server.py:848-858 (schema)Docstring defining the input parameters and usage for the tool, serving as schema documentation.""" Import the asset generated by Hyper3D Rodin after the generation task is completed. Parameters: - name: The name of the object in scene - task_uuid: For Hyper3D Rodin mode MAIN_SITE: The task_uuid given in the generate model step. - request_id: For Hyper3D Rodin mode FAL_AI: The request_id given in the generate model step. Only give one of {task_uuid, request_id} based on the Hyper3D Rodin Mode! Return if the asset has been imported successfully. """
- src/blender_mcp/server.py:915-915 (helper)Usage instruction for the tool within the asset_creation_strategy prompt.- Use import_generated_asset() to import the generated GLB model the asset