Unity Add Component
unity_add_componentAdd a component to a specified GameObject in the Unity scene by providing its path and component type.
Instructions
Add a component to a GameObject in the Unity scene.
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": {
"path": "<path>",
"component": "<component>"
},
"name": "unity_add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path of the GameObject. | |
| component | Yes | Component type to add (e.g. 'Rigidbody', 'BoxCollider'). | |
| timeoutMs | No | Command timeout. |