add_component
Attach Unity built-in or Banter components to a GameObject by object ID or hierarchy path, enabling behaviors, physics, colliders, audio, and custom functionality in the Unity Editor.
Instructions
Add a component to a GameObject. Supports Unity built-in components (Rigidbody, BoxCollider, etc.) and Banter components. Requires BanterMCPBridge extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | No | Preferred: GameObject globalObjectId from scene-hierarchy.json | |
| objectPath | No | Legacy path selector (e.g., 'MyObject' or 'Parent/Child') | |
| componentType | Yes | Component type name (e.g., 'Rigidbody', 'BoxCollider', 'AudioSource') |