get_symbols_in_scope
Retrieve visible symbols (variables, types, functions) at a specific location in TypeScript/JavaScript files to analyze code context and dependencies.
Instructions
Get all symbols (variables, types, functions, etc.) visible at a specific location in a TypeScript/JavaScript file
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": {
"root": "<root>",
"filePath": "<filePath>",
"line": "<line>"
},
"name": "get_symbols_in_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Root directory for resolving relative paths | |
| filePath | Yes | File path containing the location (relative to root) | |
| line | Yes | Line number (1-based) or string to match in the line | |
| meaning | No | Symbol types to include | All |