Get symbols in a specific file (uses ast-grep)
symbol
Get symbols in a specific file (uses ast-grep)
Returns a list of symbols (functions, classes, variables, etc.) defined in the specified file.
Only the variabels defined at the file level are included.
The returned positions point to the start of the symbol’s identifier.
e.g. for User on line 0 of src/main.py:
0: class User:
_________^
1: def __init__(self, name, age):
2: self.name = name
3: self.age = age
GET
Get symbols in a specific file (uses ast-grep)
Documentation Index
Fetch the complete documentation index at: https://docs.lsproxy.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The path to the file to get the symbols for, relative to the root of the workspace.
Response
Symbols retrieved successfully
