Import an entity template into a project
r3_entity_importPut a copy of an entity template (this account's, or a public one) into a project: every member with fresh ids, its positions and colours as saved, bound to a new Entity that starts DORMANT (started: false: its code, sounds and physics wait until r3_component_set sets started: true), or awake with started: true (its code, sounds and physics run at once). The copy remembers the template and version it came from. version imports an older version. Answers the new Entity's entityRef and its members' entityRefs. r3_editor_undo takes it back.
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": {
"projectId": "<projectId>",
"templateId": "<templateId>"
},
"name": "r3_entity_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| started | No | true: the copy runs at once (code, sounds, physics). Default false: dormant, woken later with r3_component_set {started: true}. | |
| version | No | A version to import (default: the current one). | |
| projectId | Yes | The project to put the copy into. | |
| templateId | Yes | The template (r3_entity_list shows its templateId). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | Yes | ||
| answer | Yes | This answer in words: what was done, what R3 measured, decided or refused, and what to do next. The same text as the result's text block. Read it: the fields beside it are the data, this is the guidance. | |
| members | Yes | ||
| started | Yes | ||
| version | Yes | ||
| entityId | Yes | ||
| entityRef | Yes | ||
| projectId | Yes | ||
| templateId | Yes | ||
| valueComponentCount | Yes |