remove_component
Removes a component from a Unity GameObject by object ID or path and component type or component ID. Use it to strip Rigidbody, Collider, or other components from scene objects.
Instructions
Remove a component from a GameObject. Requires BanterMCPBridge extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | No | Preferred: GameObject globalObjectId from scene-hierarchy.json | |
| objectPath | No | Legacy path selector | |
| componentId | No | Preferred when a GameObject has duplicate component types: component globalObjectId from scene-hierarchy.json | |
| componentType | No | Component type name to remove (e.g., 'Rigidbody', 'BoxCollider') |