Start sending a page
start_page_revisionOpens an upload of a page bundle (a static site: index.html at the root, built CSS and browser JavaScript, images and fonts) to an Entry, as a new page or as a new revision of one of its pages. Takes the manifest of every file (path, size in bytes, sha256 of the exact bytes) and checks it against the bundle rules (at most 200 files, 10 MB in all, 4 MB a file; built web file types only) before any file is sent. Returns an uploadId and the paths whose content Entry still needs: a file unchanged since the page's latest revision is not needed again. A revision of an existing page names the baseRevision it is made against, and a stale one is refused with the latest number. The same idempotencyKey returns the same open upload, or the revision it already made. Nothing is created yet and nothing is public: the page stays a private draft. Requires the pages:write scope. Publishing, unpublishing and changes to the live profile are made only by the owner, in Entry.
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>",
"title": "<title>",
"idempotencyKey": "<idempotencyKey>",
"files": "<files>"
},
"name": "start_page_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | A new page's address under the Entry: 1 to 60 lowercase letters, digits and single hyphens. Leave out to take one from the title. Fixed once the owner publishes. | |
| files | Yes | Every file of the bundle, index.html included, with its size and hash (at most 200 are accepted). | |
| title | Yes | The page's name, shown to the owner in Entry (the bundle's <title> names each revision). | |
| pageId | No | The page to send a new revision of. Leave out to create a new page. | |
| entryId | Yes | The Entry's id (starts with ent_), as returned by list_entries. | |
| baseRevision | No | The revision number the change is made against. Required when pageId is given; if the page has moved on, the call fails with the latest number. | |
| idempotencyKey | Yes | Chosen by the caller, 8 to 100 printable characters without spaces, such as a UUID. Repeating it after a dropped connection returns the first result and never makes a second draft. Use a new one for each new revision. |
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. | |
| needed | No | The paths to send. Every other file is already in Entry from the page's latest revision. | |
| 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. | |
| uploadId | No | Send each needed file to this upload, then submit it. Null when the idempotencyKey already made a revision: see submitted. | |
| submitted | No | The revision this idempotencyKey already made, when it did. | |
| maxChunkBytes | No | The most bytes of one file a single chunk carries, before encoding. | |
| expiresInMinutes | No | An upload that is not submitted by then is discarded. |