Read Multiple Files
read_manyRead multiple text files at once with content and metadata. Specify files, line ranges, or head/tail to extract specific portions efficiently.
Instructions
Read multiple text files in one request with contents and metadata. For a single file, use read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Files to read. e.g. ["src/index.ts"] | |
| head | No | Read first N lines of each file | |
| tail | No | Read last N lines of each file | |
| startLine | No | Start line (1-based, inclusive) per file. Defaults to 1 when endLine is set. | |
| endLine | No | End line (1-based, inclusive) per file. Defaults to last line when startLine is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| results | No | ||
| summary | No |