Submit a page for review
submit_page_revisionCloses an upload: joins the chunks, checks every file against its sha256, and checks the whole bundle (every relative reference in the HTML, CSS and module imports must resolve to a file of the bundle; index.html and its must exist; absolute URLs must be https). When all of it passes, writes the revision, which is private and cannot change afterwards, and asks the owner to review it. When anything fails, nothing is created, every problem is listed with its file, and the upload stays open for the missing or corrected files. Returns the page, the revision number and the reviewUrl where the owner previews the page and publishes it. Submitting the same upload again returns the first result. 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>",
"uploadId": "<uploadId>"
},
"name": "submit_page_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entryId | Yes | The Entry's id (starts with ent_), as returned by list_entries. | |
| uploadId | Yes | The upload's id, as returned by start_page_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. | |
| pageId | No | The page's id. | |
| status | No | The page's state: draft until the owner publishes it. | |
| 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. | |
| pageUrl | No | Where the page will live once the owner publishes it: its address under the Entry (the owner may choose a custom domain when publishing). | |
| revision | No | The revision this made. | |
| reviewUrl | No | Where the owner previews this revision and publishes it, in Entry. |