Enable the site login gate
enable_login_gateTurn on a passcode gate for your project's hosted site, requiring visitors to enter a passcode before viewing. Note: this provides casual, client-side gating, not real authentication.
Instructions
Turn on an optional passcode gate for the project's hosted site. NOTE: this is a soft client-side gate (the passcode ships in the page) — casual gating, NOT real authentication; real auth needs a hosting layer. Requires a passcode.
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": "<project>",
"passcode": "<passcode>"
},
"name": "enable_login_gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Prompt shown to visitors. | |
| project | Yes | ||
| passcode | Yes | Passcode visitors must enter. |