Make a page members-only
set_members_onlyMakes one page of a React site only for signed-in people (on true), or open to everyone again (on false), like the page's "Only for signed-in people" setting in Xodia. Xodia wraps the page's route in MembersOnlyPage (the data kit's SignedIn): signed-out visitors see "Sign in to see this page" with a sign-in link, and the data kit is added when the site lacks it. Takes the page's path from get_members (the home page stays open). Turn sign-in on first (add_feature members-sign-in, or turn_on_sign_in), or nobody can open the page. Hiding a page doesn't protect data: each table's rule does. Refusals: members_html_site (plain HTML site: members-only pages need React; tell the user, Convert to React is in Project settings), members_page_unknown (pick a path from get_members), members_page_not_allowed (the home page), members_routes_unsupported (Xodia can't change these routes: wrap the page yourself, skill app-builder). Only ask for a page the user named.
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": {
"path": "<path>",
"on": "<on>",
"projectId": "<projectId>"
},
"name": "set_members_only"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | true: only signed-in people see the page. false: open to everyone again. | |
| path | Yes | The page's address from get_members, like /account or /members/notices. Not the home page. | |
| projectId | Yes | Project id from list_projects |