multiread
Read multiple files in a single API call with automatic encoding detection. Supports per-file line offsets and limits, errors for failed files, and up to 50 files per request.
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 or 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
| 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 | |
| paths | No | Alias for file_paths | |
| 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 |