Skip to main content
Glama

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
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • 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)}"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VAST-AI-Research/tripo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server