Read multiple files from a deployed site in one call
read_filesRead up to 50 served files in one call, with the same per-file rules as read_file and 8388608 bytes in total; paths past the budget fail with BATCH_BUDGET_EXCEEDED, so request them again in another call. Use read_source_files instead for the editable source tree.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"paths": "<paths>"
},
"name": "read_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Site name as shown by list_sites, e.g. my-portfolio. Provide name or siteId. | |
| paths | Yes | Site-relative paths to read (1..50). Order is preserved in the response. | |
| siteId | No | Site id from list_sites or get_site. Use instead of name. | |
| maxBytesPerFile | No | Per-file size cap in bytes. Default 1048576, max 5242880. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| files | Yes | One entry per requested path, in order. A missing or oversized file fails only its own entry; entries past the byte budget fail with BATCH_BUDGET_EXCEEDED. | |
| siteId | Yes | ||
| 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. |