Protect or open site
protectDestructive
Protect a site or one path, or open it again (owner, claimed sites): mode passcode (a site password; returns protect_url, where the user sets it; never ask for it in chat), members (path "/": members-only, add visitors with add_people; paid plans; another path: emails who may see it), or public (removes it, approve_url); list_people shows protection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Required unless confirm_token | |
| path | No | "/" (default, whole site) or a part such as /students | |
| site | Yes | Site name, e.g. brave-otter-4821 | |
| emails | No | members on a path: the full list who may see it | |
| confirm_token | No | From the first call: re-call with it for the approval status |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | On failure (isError): {code, message} | |
| agent_message | No | ||
| confirm_token | No |