get_selected_elements
Retrieves IDs, categories, types, and key parameters of elements currently selected in the Revit UI. Returns an empty list when nothing is selected.
Instructions
Get details of elements currently selected in the Revit UI.
Returns IDs, categories, types, and key parameters of all elements the user has selected in Revit. Returns an empty list if nothing is selected (not an error).
Args: ctx: MCP context for logging
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": "get_selected_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||