Read live component values from the user's open R3 editor
r3_editor_inspectRead what components hold RIGHT NOW in an R3 tab that has the project open: runtime values included — a moving body's position while the project runs. Use it to debug live behaviour. It needs a tab with the project open (r3_editor_open opens one). r3_component_read reads the kept values without a tab.
Select with any of: ids (component ids from r3_project_load), type ("Mesh", "RigidBodyDynamic", …) and entityRef; they combine. fields keeps only the properties you name (e.g. ["position", "rotation"]). At most 50 components per call; a larger answer is refused with how to narrow it.
Values are in r3_component_read's shape (value components inline, references as entityRefs), so they can be handed to r3_component_set. The project must be open in the editor (r3_editor_open opens it). Read-only: nothing is changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Component ids to read. | |
| type | No | Only components of this type, e.g. "Mesh" or "R3ComponentMesh". | |
| fields | No | Only these properties, e.g. ["position", "rotation"]. | |
| entityRef | No | Only the component with this entityRef. | |
| projectId | Yes | The project, open in the user's editor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | 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. | |
| editor | Yes | ||
| projectId | Yes | ||
| components | Yes | ||
| unreadable | Yes | ||
| projectName | Yes | ||
| fieldsNotFound | Yes |