list_symbols
Get a formatted outline of all top-level functions, classes, and methods in source files (Python, JS, TS, C, C++) with line numbers to understand file structure before editing.
Instructions
Return a formatted outline of all top-level functions, classes, and methods in a source file (Python, JS, TS, C, C++), with line numbers. Read-only.
Use this when: You're about to edit an unfamiliar file and want to see its structure and exact symbol names. ALWAYS a good first call before editing -- avoids guessing at target names. Don't use this when: You already know the exact target name.
Example: file_path="/abs/path/to/module.py"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |