get_page_html
Returns a page's HTML so the AI can make the changes reviewers asked for.
What it does#
For a page shared as HTML, it returns the code exactly as it was uploaded: the latest version, or an earlier one if you ask. The AI edits it and publishes the result with update_page. This means it can fix a page in a new chat, without you pasting the file.
Inputs#
| Name | Type | Required | What to pass |
|---|---|---|---|
page or manage_link | string | Yes | Signed in: the page's name, review link or manage link. Without an account: the page's private manage link (manage_link). |
version | integer | No | The version to read, as shown by list_versions. Default: the latest. |
offset | integer | No | For a big page: where to start, from the next_offset of the previous call. Default 0. |
Example#
Try askingGet the code of the Fernhill home page and fix the open comments.
What comes back
The HTML of Fernhill · Home, version 2 (latest), exactly as it was uploaded. Edit it and publish the result with update_page. Review link: https://htmlannotate.com/v/fernhill-home
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fernhill Ceramics · Handmade stoneware from our studio</title>
…Good to know#
- Pages over about 400 KB come back in parts. The reply says which characters it holds and the offset for the next part, and the AI joins the parts in order before editing.
- For a live website, it returns the site's current HTML for reference only. HTMLAnnotate keeps no source file for a live site, so the change is made in the site's own code or builder.
- PDFs have no HTML. To change one, edit it where it was made and upload it as a new version.
- Archived pages can be read, but must be restored before a new version is published.
Written by the HTMLAnnotate team · Updated 23 November 2026 · View as Markdown · Something unclear? Tell us