get_selection
Retrieve the current selection in the PlayCanvas editor, returning its type (entity, asset, or null) and corresponding IDs. Ideal for acting on selected items without listing all scene contents.
Instructions
Read the editor's current selection. Returns { type: "entity" | "asset" | null, ids: [...] }. Entity ids are resource_ids (strings); asset ids are numbers. When NOT to use: to list all entities/assets (use list_entities/list_assets).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||