import_tripo_glb_model
Import 3D GLB models from a URL into Blender scenes using the Tripo MCP Server for seamless integration of assets created from natural language descriptions.
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 main handler function for the 'import_tripo_glb_model' MCP tool. It receives a GLB URL, sends an import command to the connected Blender instance via socket, processes the response, and returns a formatted list of imported models with their dimensions or error messages.@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)}"