read_file_outline
Extract a file's semantic skeleton—classes, functions, interfaces, docstrings—stripping bodies. Understand API contracts and signatures without implementation details.
Instructions
Extracts the semantic AST skeleton outline of a single source file, preserving all class declarations, function signatures, interfaces, and docstrings while stripping function bodies.
Behavior: Read-only operation. Zero file modifications and zero network calls. Returns syntax-highlighted code block.
When to use: Use this to understand API contracts, public types, and method signatures of an individual file without consuming tokens on implementation details.
When NOT to use: Do NOT use this if you need complete implementation logic (use read_file_content instead), or if you need an overview of multiple repository files (use get_codebase_map instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | No | Base directory used to resolve relative filePath. Defaults to current working directory ("."). | |
| filePath | Yes | Relative or absolute path to the target source file. |