Read a project's .page source
get_page_sourceRead a micropage project's raw .page source, llms.txt, and uploaded filenames for an active or older build. Use before editing to modify and save back.
Instructions
Return the raw .page markup of a micropage project's active build (or of a given build number), plus its stored llms.txt and the filenames uploaded to the project.
Call it before editing an existing site: change the returned source and send the whole file back with save_page as landing.page. Pass version to read an older build, e.g. to restore it. The source was merged from all .page files when saved, so it comes back as one file.
Read-only; it does not show what is live (get_project tells you which build is deployed) and does not download images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Which project: its uuid, its numeric id, its micropage hostname ("acme" or "acme.micropage.sh") or its custom domain ("www.acme.com"). A full URL also works. Get valid values from list_projects. | |
| version | No | Which build's source to read: a build number ("v12" or 12) or id ("id:4567"). Defaults to the active build (the draft or published build the editor and CLI work on), else the latest build. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build | Yes | Null when the project has no builds yet. | |
| assets | Yes | Filenames uploaded to the project, usable as `img: <- filename`. Null if the list could not be read. | |
| source | Yes | The raw .page markup. Several files were merged into one when saved; edit it as landing.page. | |
| project | Yes | ||
| llms_txt | Yes | The site's /llms.txt as stored on this build, if any. |