Get site
get_siteGet a single site's status, visibility, current version metadata, detected content kind, its old addresses that still forward to it (old_addresses), SPA fallback, allowed external origins, whether its page offers the uploaded file for download (original_included) and whether that can be changed (original_withholdable), link expiry (link_expires_at, ISO or null) with its derived link_status, whether a view password is set (has_view_password), view count, the allowlist it is currently shared with (who can view a private site) by id (view_count, allowlist, old_addresses, spa_fallback, viewer_update, auto_refresh, external_origins and original_withholdable are null for a reader who may only view it), and files: every stored file of the live version as {path, byte_size}, partials included. content_hash names the live version: pass it as base_content_hash to update_site. website_host is the address of a website. Pass a path from files to get_site_content to read that file.
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": {
"site_id": "<site_id>"
},
"name": "get_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The id of the site to fetch | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |