editor_selection
Manage Unity Editor selection: get, set, clear, or add GameObjects and assets by instance IDs or paths.
Instructions
Gets or sets the current Unity Editor selection (GameObjects, assets, etc.)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "editor_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Single path to add to selection (for add action) | |
| paths | No | Array of GameObject paths or asset paths to select (for set action) | |
| action | No | Action to perform (default: get) | |
| instanceId | No | Single instance ID to add to selection (for add action) | |
| instanceIds | No | Array of instance IDs to select (for set action) |