download_sketchfab_model
Download and import 3D models from Sketchfab into Blender using the model's unique identifier, enabling direct access to assets for 3D projects.
Instructions
Download and import a Sketchfab model by its UID.
Parameters:
uid: The unique identifier of the Sketchfab model
Returns a message indicating success or failure. The model must be downloadable and you must have proper access rights.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes |
Implementation Reference
- src/blender_mcp/server.py:659-687 (handler)The handler function 'download_sketchfab_model' which is registered as an MCP tool and delegates the actual download to a Blender connection via 'blender.send_command'.
@mcp.tool() def download_sketchfab_model( ctx: Context, uid: str ) -> str: """ Download and import a Sketchfab model by its UID. Parameters: - uid: The unique identifier of the Sketchfab model Returns a message indicating success or failure. The model must be downloadable and you must have proper access rights. """ try: blender = get_blender_connection() logger.info(f"Attempting to download Sketchfab model with UID: {uid}") result = blender.send_command("download_sketchfab_model", { "uid": uid }) if result is None: logger.error("Received None result from Sketchfab download") return "Error: Received no response from Sketchfab download request" if "error" in result: logger.error(f"Error from Sketchfab download: {result['error']}")