Read bundle file
bundle_get_fileRead complete file bytes as base64 chunks. First read uses current directory/SPA resolution; continue with returned versionId, exact path and nextOffset as offset. Each read rechecks bundle readability and exact version membership.
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": {
"bundleId": "<bundleId>",
"path": "<path>"
},
"name": "bundle_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file's path; the first read resolves directories and the SPA fallback. | |
| offset | No | Where the chunk starts: the previous chunk's nextOffset (needs versionId). | |
| bundleId | Yes | The bundle: its id, your slug for it, its live URL or its page URL. | |
| versionId | No | The version a continuation reads: the first chunk's versionId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |