multiread
Read multiple files simultaneously to minimize API calls, with automatic encoding detection and support for reading specific line ranges across all files.
Instructions
Reads multiple files in a single call to reduce API round-trips. Encoding-aware: auto-detects file encoding for each file. Supports offset/limit for reading specific line ranges (applied to all files). If a file fails, the error is included in output and remaining files continue. Maximum 50 files per request.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes | List of absolute file paths to read,required | |
| offset | No | Line number to start reading from (1-based). Negative = from end (e.g. -5 = last 5 lines). Default: 1 | |
| limit | No | Maximum number of lines to read per file. Default: 0 (all) |