modal-files

Read Many Files

Read several workspace files in one round trip.

One call resolves the sandbox once and checks its health once, where the same files read individually pay both per file. The response is the sandbox's own {"results": {path: envelope}} map, forwarded verbatim.

The ceiling is on the summed response rather than any one file, so a batch cannot relay more through this task than a single at-limit read already could. Over it, the caller sees the same too-large envelope a single read answers with -- no results key -- and is expected to fall back to reading the paths one at a time.

post/v1/modal/files/read_many

Response

Successful Response

{"stackTrail":"paths:/v1/modal/files/read_many:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 30 revisions of this API.1