gameobject_component_add
Add components like Rigidbody, BoxCollider, or AudioSource to GameObjects in Unity Editor through AI agents.
Instructions
Add a component to a GameObject. Use Unity component type names like Rigidbody, BoxCollider, AudioSource, Light, etc.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gameObjectName": "<gameObjectName>",
"componentType": "<componentType>"
},
"name": "gameobject_component_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectName | Yes | Name of the target GameObject | |
| componentType | Yes | Unity component type name (e.g. Rigidbody, BoxCollider, AudioSource, MeshRenderer) |