Read multiple files from a deployed site in one call
read_filesBatched version of read_file. Pass up to 50 paths; each is fetched independently with the same per-file rules as read_file. The whole batch is capped at 8388608 bytes total — once that's exhausted, remaining paths fail with BATCH_BUDGET_EXCEEDED so the agent can re-request them in another call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| paths | Yes | Site-relative paths to read (1..50). Order is preserved in the response. | |
| siteId | No | ||
| maxBytesPerFile | No | Per-file cap. Default 1048576, hard max 5242880. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| files | Yes | One entry per requested path, in the same order. Each entry is independent: a missing file or oversized file fails its own entry but does not abort the whole batch. If the cumulative byte budget is exhausted partway through, remaining entries fail with code BATCH_BUDGET_EXCEEDED. | |
| siteId | Yes | ||
| request_id | No | Server-assigned request correlation id. Quote it when contacting support. | |
| totalBytes | Yes | Sum of bytes returned across successful entries. | |
| budgetExceededAt | Yes | Index of the first path that was skipped due to the cumulative byte budget, or null if everything fit. |