Skip to main content
Glama

get_definitions

Retrieve TypeScript symbol definitions by specifying the root directory, file path, line number, and symbol name. Includes options to display surrounding lines for context.

Instructions

Get the definition(s) of a TypeScript symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoNumber of lines to show after the definition
beforeNoNumber of lines to show before the definition
filePathYesFile path (relative to root)
lineYesLine number (1-based) or string to match in the line
rootYesRoot directory for resolving relative paths
symbolNameYesName of the symbol

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