Skip to main content
Glama

NewsDigest MCP

by SomeiLam

get_symbols_in_scope

Retrieve visible symbols (variables, types, functions) at a specific location in a TypeScript/JavaScript file, enabling precise code context analysis based on line, file path, and root directory.

Instructions

Get all symbols (variables, types, functions, etc.) visible at a specific location in a TypeScript/JavaScript file

Input 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

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" }

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