Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesFile path containing the location (relative to root)
lineYesLine number (1-based) or string to match in the line
meaningNoSymbol types to includeAll
rootYesRoot directory for resolving relative paths

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SomeiLam/news-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server