create_entity
Creates a new entity in the current O3DE level. Specify a name and optional parent ID to add objects and build hierarchies.
Instructions
Create a new entity in the current O3DE level.
Tries the AiCompanion gem's native create_entity request first
(gem 0.5.0 or later, works in the gem's secure mode) and returns its
JSON verbatim: {"entity_id": ..., "name": ..., "position": [...]}.
The name is checked here with the gem's own rule (a letter first, then
letters, digits, _ or -, at most 128 characters) before either
path, and the gem validates the parent; a refusal is returned as an
error. Older gems and the legacy transport fall back to editor Python,
which prints Created entity [<id>].
Args: name: Name for the new entity. parent_id: Optional entity ID of the parent. Omit (or pass null) for root-level.
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": {
"name": "<name>"
},
"name": "create_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| parent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |