list_symbols
list_symbolsExtract code symbols like functions, classes, and variables from a file, returning structured details for each symbol's name, type, location, and signature.
Instructions
Extract all code symbols (functions, classes, variables, etc.) from a file. Returns structured information including name, type, location, and signature for each symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Filter by symbol types: function, class, variable, constant, interface, type, enum, method, property | |
| content | No | Code content to analyze directly (either file_path or content required) | |
| language | No | Language name (auto-detected from file path if not provided) | |
| file_path | No | Path to the file to analyze (either file_path or content required) | |
| max_symbols | No | Maximum symbols returned (default: 1000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | Yes | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| schema_version | Yes |