Create an R3 project
r3_project_createCreate a new R3 project and save it to the user's account. Produces a complete, openable project — scene, world, camera, renderer, lighting, audio listener, music transport and OrbitControls (anyone who opens it can turn and zoom the view) — ready for components to be added. Pass template for a phone project (mobile-portrait / mobile-landscape) that fills the screen when published. Returns the project id, which every other project tool takes. r3_whoami confirms which account it is created in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Project name, shown in the user's project list. Defaults to "Untitled Project". Max 120 characters. | |
| camera | No | Where the project's camera starts and what it looks at, e.g. framing a model you add next. Omit it for the default: (0, 5, 10) looking at the origin. | |
| template | No | Start from a project template instead of an Empty Project. "mobile-portrait" — A phone held upright: designed at 390×844 (~19.5:9), fills the screen when published. "mobile-landscape" — A phone held sideways: designed at 844×390 (~19.5:9), fills the screen when published. A template sets the renderer's design size and fullscreen (the canvas fills the screen it runs on; the camera follows the screen's shape, never letterboxed) and the camera's field of view for that orientation. Omit it for an Empty Project, whose renderer also fills the screen (an 800×600 fallback size, the default 75° field of view). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | 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. | |
| template | No | ||
| projectId | Yes | ||
| environment | Yes | ||
| componentCount | Yes |