selectionRanges
Retrieve hierarchical selection ranges at a code position, from identifier to enclosing class.
Instructions
Hierarchical selection ranges at position: identifier→expression→block→function→class.
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": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "selectionRanges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) | |
| column | Yes | Column (1-based) | |
| filePath | Yes | Workspace or absolute path |