List a site's undo history
list_versionsLists a site's saved versions, newest first - version_id, why it was saved, its label, whether an AI edit made it (ai: true), and when. Every edit_section and set_theme call saves the page first, so any AI edit can be undone with restore_version. Free, and no account is needed for a draft you created.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page of the site, as its path ("/about", "/contact"). Omit for the home page. See list_pages. | |
| site_key | No | The site whose undo history to list. Defaults to the caller's current draft site when omitted. | |
| draft_token | No | The draft token returned by draft_create, if you are working on an anonymous draft. Only needed when your client cannot send the x-pagetool-draft-token header. |