read_symbol
Extract specific code symbols like functions, classes, or types from files across multiple programming languages using streaming and concurrency for efficient searching.
Instructions
Find and extract symbol block by name from files, supports a lot of file formats (like TS, JS, GraphQL, CSS and most that use braces for blocks). Uses streaming with concurrency control for better performance
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | Symbol name(s) to find (functions, classes, types, etc.), case-sensitive, supports * for wildcard | |
| file_paths | No | File paths to search (supports relative and glob). Defaults to "." (current directory). IMPORTANT: Be specific with paths when possible, minimize broad patterns like "node_modules/**" to avoid mismatches | |
| limit | No | Maximum number of results to return. Defaults to 5 | |
| optimize | No | Unless explicitly false, this tool will strip comments and spacing to preserve AI's context window, omit unless you REALLY it unchanged (default: true) |