unity_component_remove
Remove a component from a Unity GameObject by specifying the object path and component type. Supports index for multiple components.
Instructions
Remove a component from a GameObject.
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": {
"gameObjectPath": "<gameObjectPath>",
"componentType": "<componentType>"
},
"name": "unity_component_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| index | No | Index if multiple components of same type (default: 0) | |
| componentType | Yes | Type name of the component to remove | |
| gameObjectPath | Yes | Path or name of the target GameObject |