Read an app file
file_readRead a byte range from an app-stored file by specifying offset and length. Retrieve base64-encoded data windows and reassemble them to reconstruct the full file, verifying integrity with its SHA-256 hash.
Instructions
Read one file an app has stored, as a WINDOW of its bytes: offset/length select it, data_base64 carries exactly that window, next_offset continues (same window grammar as get_app, and for the same reason). Reassemble by concatenating decoded windows; sha256 is the WHOLE file's hash, so reassembly is checkable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| path | Yes | the file's logical name | |
| length | No | max bytes for this window (default fits the result budget) | |
| offset | No | byte offset to read from (default 0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| eot | No | ||
| mime | Yes | ||
| path | Yes | ||
| size | Yes | ||
| total | No | ||
| offset | No | ||
| sha256 | Yes | ||
| version | Yes | ||
| returned | No | ||
| data_base64 | No | ||
| next_offset | No |