Read a site: files and versions
get_siteUse before editing an existing site, or when the owner wants their code: returns its files (text contents; images and fonts as a list with their addresses), and with history: true its saved versions for restore_version. Pass paths to read only some files. (In Ginta's editor, owners on every plan can also see and edit the files in the Code tab and download everything as a .zip.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Only these files (default: all text files, if the site isn't too large). | |
| history | No | Also list the last 20 saved versions. | |
| site_id | Yes | The site id: the first part of the site URL, e.g. "bella-roma" for https://bella-roma.ginta.page (see list_sites). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The site's address. | |
| text | Yes | The answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents). | |
| files | Yes | Text files returned (their contents are in text). | |
| assets | Yes | Images, fonts and other binary files. | |
| site_id | Yes | The site id. | |
| version | Yes | The live version. | |
| complete | Yes | false = the site is too large; ask for specific paths. | |
| versions | No | Saved versions (with history: true). | |
| total_bytes | Yes | Size of all files. | |
| notify_email | Yes | Form messages go to another address than the account email, shown masked (null = the account email). |