extract_code_context
Parse source files using AST to extract targeted code context and relevant imports, optimizing token usage for AI-based code analysis and assistance. Supports TypeScript, JavaScript, Python, Go, and Rust.
Instructions
Extract minimal code context from files using AST parsing
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | Path to the source file | |
includeImports | No | Whether to include relevant imports | |
maxTokens | No | Maximum tokens to return | |
targetSymbols | No | Specific symbols/functions to extract context for |