Component: BlenderAgent - 3D Scene Creation via Natural Language
Module:
gaia_agent_blender.agent
Inherits: Agent
MCP: BlenderMCPClient for Blender communicationOverview
BlenderAgent enables natural language 3D scene creation in Blender. It translates user requests into Blender operations via MCP (Model Context Protocol), handling object creation, material assignment, and scene manipulation. Key Features:- Natural language to Blender operations
- Multi-step plan execution
- Colored object handling (create + material)
- MCP-based Blender communication
- Scene diagnosis capabilities
Requirements
Functional Requirements
-
Object Creation
- Create primitives (CUBE, SPHERE, CYLINDER, CONE, TORUS)
- Set location, rotation, scale
- Assign materials and colors
-
Scene Management
- Clear scene
- Get scene info
- Get object info
- Delete objects
-
Material System
- Create materials
- Set RGBA colors
- Apply materials to objects
-
Plan Execution
- Multi-step plans for complex scenes
- Atomic tool calls
- Object name tracking (Blender auto-naming)
API Specification
BlenderAgent Class
Implementation Details
System Prompt: Colored Object Detection
Object Name Tracking
Problem: Blender auto-generates names (e.g., “Cube.001” instead of “my_cube”). Solution: Post-process tool results to extract actual name.Testing Requirements
Unit Tests
Dependencies
Usage Examples
Example 1: Simple Scene
Example 2: Complex Scene
Example 3: MCP Client Usage
Related Specifications
- agent-base - Agent architecture
- tool-decorator - Tool system
- mcp-server - MCP protocol
BlenderAgent Technical Specification