set_selection
Replace the current Roblox Studio selection with specified instance paths to target objects or prepare for a Studio command, while leaving instances unchanged and skipping unresolved paths.
Instructions
Replace the user's Studio selection with the given instances, to point them at something or prepare for a Studio command. Changes only the selection, never the instances. Paths that do not resolve are skipped; the reply says how many were selected. An empty list clears the selection.
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": {
"paths": "<paths>"
},
"name": "set_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Dot paths to select, e.g. ["Workspace.Map.Door", "Workspace.Map.Window"]. | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. |