get_definitions
Retrieve and display TypeScript symbol definitions, including surrounding lines, from specified files in a given directory. Ideal for developers analyzing and understanding code structure.
Instructions
Get the definition(s) of a TypeScript symbol
Input Schema
Name | Required | Description | Default |
---|---|---|---|
after | No | Number of lines to show after the definition | |
before | No | Number of lines to show before the definition | |
filePath | Yes | File path (relative to root) | |
line | Yes | Line number (1-based) or string to match in the line | |
root | Yes | Root directory for resolving relative paths | |
symbolName | Yes | Name of the symbol |