add_component
Adds a component such as Rigidbody, AudioSource, or a custom script class to a target GameObject in Unity.
Instructions
Add a component, e.g. Rigidbody, AudioSource or your own script class name.
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": {
"target": "<target>",
"component": "<component>"
},
"name": "add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| component | Yes |