import_tripo_glb_model
Import GLB 3D models from URLs directly into Blender scenes using the Tripo MCP Server. This tool enables AI assistants to add 3D assets to Blender projects.
Instructions
Import a GLB model from URL into Blender scene
Parameters:
- glb_url: Download URL of the GLB model file
Returns:
Result message of the import operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glb_url | Yes |
Implementation Reference
- src/server.py:847-884 (handler)The handler function decorated with @mcp.tool() that implements the 'import_tripo_glb_model' tool. It sends the import command to the Blender addon via socket connection and formats the response listing imported models with their dimensions.@mcp.tool() def import_tripo_glb_model(ctx: Context, glb_url: str) -> str: """ Import a GLB model from URL into Blender scene Parameters: - glb_url: Download URL of the GLB model file Returns: Result message of the import operation """ try: blender = get_blender_connection() result = blender.send_command("import_tripo_glb_model", {"url": glb_url}) if "error" in result: return f"Import failed: {result['error']}" if result.get("status") == "success": output = ["Successfully imported models:"] for model in result.get("models", []): dim = model["dimensions"] output.append( f"• {model['name']} | Dimensions: " f"{dim['x']} x {dim['y']} x {dim['z']} meters" ) if not output: output.append("No models found in imported file") return "\n".join(output) else: return f"Import failed: {result.get('message', 'Unknown error')}" except Exception as e: logger.error(f"Error importing GLB model: {str(e)}") return f"GLB model import failed: {str(e)}"