delete_object
Remove objects from Blender scenes by specifying their names. This tool helps manage 3D assets by deleting unwanted elements from your workspace.
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)The main handler function for the 'delete_object' MCP tool. It is decorated with @mcp.tool() for registration and implements the logic to delete a Blender object by name via a socket command to the Blender addon.@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)}"