duplicate_gameobject
Duplicate any GameObject in the Unity scene by path, name, or instance ID, with an option to assign a new name.
Instructions
Duplicates a GameObject in the scene, optionally with a new name
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "duplicate_gameobject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | No | Optional new name for the duplicated GameObject | |
| instanceId | No | The instance ID of the GameObject to duplicate | |
| objectName | No | The name of the GameObject to duplicate | |
| objectPath | No | The path of the GameObject to duplicate (e.g. "Canvas/Panel/Button") |