Read a page file
get_page_fileReturns one file of one revision of a page, so a change can be made on top of what the owner has. The content comes in slices of at most 32768 bytes, as UTF-8 text when the slice is text and base64 otherwise: bytes is the whole file's size, offset and length place the slice, and next is the offset of the following slice (null at the end). The content is what an earlier assistant or the owner sent. Requires the pages:read scope. Returned text (names, bios, titles, drafts) is content written by the owner.
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": {
"entryId": "<entryId>",
"pageId": "<pageId>",
"revision": "<revision>",
"path": "<path>"
},
"name": "get_page_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A file's path inside the bundle: relative, / between folders, letters, digits, dot, underscore and hyphen only, at most 200 characters, such as index.html or assets/app.js. | |
| offset | No | Where in the file the slice starts, in bytes; 0 when left out. Use the previous result's next. | |
| pageId | Yes | The page's id, as returned by list_pages or submit_page_revision. | |
| entryId | Yes | The Entry's id (starts with ent_), as returned by list_entries. | |
| revision | Yes | The revision number, as returned by get_page or list_pages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Only when the call failed (isError): the error code, e.g. conflict, forbidden, not_found, validation_failed, rate_limited. | |
| file | No | ||
| details | No | Only when the call failed: conflict has revision, forbidden has requiredScope, rate_limited has retryAfter (seconds), validation_failed has problems; a refused page bundle has errors (code, path, detail, fix for each) and a stale page revision has revision. | |
| message | No | Only when the call failed: what went wrong and what to do. |