Who can open a site
get_site_protectionWho can open one site, in plain words: its previews (only people in the workspace after they sign in, or anyone with a preview's address), each part of its live site with its address (anyone, or only people in the workspace after they sign in), whether each can be switched, whether it has a pass for automated tools, and the settings page where the person sees it all. Changing it is set_site_protection; the pass is create_automation_pass, show_automation_pass and remove_automation_pass.
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": {
"project_id": "<project_id>"
},
"name": "get_site_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The site (list_projects gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |