read_symbols
Batch read multiple symbols from one file to reduce round-trips. For 3–8 symbols; for 1–2 use read_symbol, for many use smart_read.
Instructions
Batch read MULTIPLE symbols from ONE file — saves N-1 round-trips vs calling read_symbol N times. BEST FIT: 3–8 symbols in one file when you need their bodies. For 1–2 symbols use read_symbol (simpler). If you'd request ≥70% of the file's symbols, the handler refuses and points you to smart_read — that's cheaper than a large batch. For edit preparation use read_for_edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| symbols | Yes | Array of symbol names (max 10), e.g. ["UserService.create", "UserService.update", "UserService.delete"] | |
| context_before | No | Lines of context before each symbol (default: 2) | |
| context_after | No | Lines of context after each symbol (default: 0) | |
| show | No | Display mode for each symbol (default: auto) |