batch_read
Read multiple files in one batch under a shared token budget. Returns diffs for changed files and skips unchanged content, minimizing token usage.
Instructions
Read several files at once under a shared token budget.
The efficient way to seed the cache before search/grep, and cheaper
than many single read calls. New files return full content, changed
files return a diff, and files already in your context are reported as
unchanged with no body. Smallest files are read first; once the budget
is spent the rest are listed under skipped — recover them with read
using offset/limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | The files to read — a comma-separated list, a JSON array, or glob patterns (expanded for you). | |
| priority | No | Optional paths to read first, ahead of the remaining files. | |
| max_total_tokens | No | Total token budget shared across the whole batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| skipped | No | ||
| summary | No | ||
| truncated | No |