Open or close the app
appUsersSetPrivateChoosing who can open an app is appSharingSetMode’s; this older Private switch only puts a static-hosted app behind one-time invite links. It changes what visitors get, and requires confirmed: true, representing the human’s agreement to this exact setting for this exact app; without the literal nothing is sent. private: true gates the app’s address: only a request carrying its pass (set by opening an invite link) is served, and everyone else gets the door page; private: false opens it to everyone again. Only Tofu’s static hosting has the gate: turning it on for a server-hosted app is refused without saying why, and nothing changes. It takes effect right away when its answer says so, otherwise with the app’s next deployment: until then the version that is live keeps serving its side of the gate. An error result alone does not establish the app’s current Private setting. message says what happened: an app set to people or code can answer unchanged and stay restricted.
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": {
"projectId": "<projectId>",
"private": "<private>",
"confirmed": "<confirmed>"
},
"name": "appUsersSetPrivate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| private | Yes | ||
| confirmed | Yes | ||
| projectId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| outcome | Yes | ||
| private | Yes |