get_polyhaven_status
Verify PolyHaven integration status in Blender to determine availability of its features, facilitating efficient 3D asset creation.
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/server.py:675-691 (handler)The handler function for the 'get_polyhaven_status' MCP tool. It connects to Blender via get_blender_connection(), sends the 'get_polyhaven_status' command, extracts the message from the response, and returns it. Includes error handling.@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", "") return message except Exception as e: logger.error(f"Error checking PolyHaven status: {str(e)}") return f"Error checking PolyHaven status: {str(e)}"