delete_object
Remove an object from the Blender scene by specifying its name. Part of the Tripo MCP Server, which connects AI assistants to Blender for 3D asset management.
Instructions
Delete an object from the Blender scene.
Parameters:
- name: Name of the object to delete
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- src/server.py:399-416 (handler)MCP tool handler for 'delete_object'. Decorated with @mcp.tool(), it connects to Blender and sends a delete_object command with the specified object name.@mcp.tool() def delete_object(ctx: Context, name: str) -> str: """ Delete an object from the Blender scene. Parameters: - name: Name of the object to delete """ try: # Get the global connection blender = get_blender_connection() result = blender.send_command("delete_object", {"name": name}) return f"Deleted object: {name}" except Exception as e: logger.error(f"Error deleting object: {str(e)}") return f"Error deleting object: {str(e)}"
- src/server.py:399-399 (registration)Registration of the delete_object tool via @mcp.tool() decorator.@mcp.tool()