unity_gameobject_duplicate
Duplicate a GameObject in Unity, including all its children and components. Specify the original by path or instance ID, and optionally set a new name.
Instructions
Duplicate a GameObject with all its children and components.
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": "unity_gameobject_duplicate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Hierarchy path or name of the GameObject to duplicate | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| newName | No | Name for the duplicate (default: original name + ' (Copy)') | |
| instanceId | No | Instance ID (alternative to path) |