manage_selection
Control Roblox Studio selections: retrieve current items, modify selections, or monitor changes with detailed context and hierarchical data.
Instructions
Get, set, or clear selection. [PRO] context, details, add/remove items, watch changes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Selection action. Basic: get (current selection), set (replace selection), clear (deselect all), cached (from cache without round-trip). [PRO]: context (detailed with source/properties), details (hierarchical with ancestors/descendants), add (add to selection), remove (remove from selection), watch (monitor changes). | |
| paths | No | Array of instance paths. Used by: set (required), add (required), remove (required). | |
| maxAge | No | Maximum age of cached data in milliseconds. Used by: cached. Default: 30000. Set to 0 for any age. | |
| maxDepth | No | [PRO] Maximum depth for descendant tree traversal. Used by: details. Default: 1. | |
| includeSource | No | [PRO] Include script source code. Used by: context. Default: true. | |
| includeProperties | No | [PRO] Include all readable properties. Used by: context. Default: true. | |
| includeChildren | No | [PRO] Include immediate children. Used by: context. Default: false. | |
| includeAncestors | No | [PRO] Include full ancestor chain. Used by: details. Default: false. |