get_symbols_in_scope
Retrieve all visible symbols (variables, types, functions) at a specific location in a TypeScript/JavaScript file. Specify the root directory, file path, and line number to analyze code context effectively.
Instructions
Get all symbols (variables, types, functions, etc.) visible at a specific location in a TypeScript/JavaScript file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
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 |
root | Yes | Root directory for resolving relative paths |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"filePath": {
"description": "File path containing the location (relative to root)",
"type": "string"
},
"line": {
"description": "Line number (1-based) or string to match in the line",
"type": [
"number",
"string"
]
},
"meaning": {
"default": "All",
"description": "Symbol types to include",
"enum": [
"Value",
"Type",
"Namespace",
"All",
"Variable",
"Function",
"Class",
"Interface",
"TypeAlias",
"Enum",
"Module"
],
"type": "string"
},
"root": {
"description": "Root directory for resolving relative paths",
"type": "string"
}
},
"required": [
"root",
"filePath",
"line"
],
"type": "object"
}