unity_add_component
Add a Unity component to a GameObject by component type name; short and full names are fuzzy matched to resolve the type.
Instructions
Add a component by type name (short or full name, fuzzy matched). (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)
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 | ||
| component | Yes |