reparent_entity
Move an entity to a new parent in the hierarchy, optionally setting its child index or preserving world transform to maintain position.
Instructions
Move an entity to a new parent in the hierarchy, optionally at a specific child index. Set preserveTransform=true to keep the entity at the same world position after moving. Returns the moved entity summary (including its new hierarchy path). When NOT to use: to change position/rotation values directly (use modify_entities).
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": {
"id": "<id>",
"parent": "<parent>"
},
"name": "reparent_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Entity ID | |
| index | No | Insertion index among the parent's children | |
| parent | Yes | New parent entity resource_id | |
| preserveTransform | No | Keep the same world transform after reparenting |