unity_delete
Deletes a GameObject and its children from the active scene, or removes only a specified component when a component is provided.
Instructions
Delete a GameObject (and its children) from the active scene. (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>"
},
"name": "unity_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| component | No | if set, remove only this component instead of the object |