gameobject-destroy
Destroy any GameObject and its nested children in an open Prefab or Scene. Target using name, instance ID, or hierarchy path after locating with the find tool.
Instructions
Destroy GameObject and all nested GameObjects recursively in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first.
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": {
"gameObjectRef": "<gameObjectRef>"
},
"name": "gameobject-destroy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectRef | Yes | Schema: {"name":"string"} or {"instanceID":int} or {"path":"hierarchy/path"} |