multiread
Read multiple files simultaneously to reduce API calls, with automatic encoding detection and support for reading specific line ranges in each file.
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. Use file_paths (string array) with global offset/limit, or files (object array) for per-file offset/limit. 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 | No | List of absolute file paths to read. All files use the global offset/limit. Use 'files' instead for per-file ranges | |
| 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) | |
| files | No | Per-file read ranges. Each entry has path, offset, limit. Takes priority over file_paths |