get_polyhaven_status
Verify PolyHaven integration status in Blender. Determine if PolyHaven features are enabled and available for use within the BlenderMCP environment.
Instructions
Check if PolyHaven integration is enabled in Blender. Returns a message indicating whether PolyHaven features are available.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/blender_mcp/server.py:521-538 (handler)The main handler function for the 'get_polyhaven_status' tool. It connects to the Blender addon via get_blender_connection() and forwards the 'get_polyhaven_status' command to retrieve the status of PolyHaven integration, appending additional information if enabled.@mcp.tool() def get_polyhaven_status(ctx: Context) -> str: """ Check if PolyHaven integration is enabled in Blender. Returns a message indicating whether PolyHaven features are available. """ try: blender = get_blender_connection() result = blender.send_command("get_polyhaven_status") enabled = result.get("enabled", False) message = result.get("message", "") if enabled: message += "PolyHaven is good at Textures, and has a wider variety of textures than Sketchfab." return message except Exception as e: logger.error(f"Error checking PolyHaven status: {str(e)}") return f"Error checking PolyHaven status: {str(e)}"