Set sharing permissions
set_visibilitySet visibility for exactly one proposal_id or folder_id. private means only workspace members can open it (any signed-in member; in a personal workspace that is just the user) — everyone else sees a blocked page; passcode requires a passcode — omit passcode and let the platform generate one (or keep the current one); the result never shows it: the user copies it from the author bar at the top of the page or the console's "Who can view". Never ask the user to say a passcode in the chat and never repeat one; public allows anyone with the URL. Confirm external sharing with the user first. Changes take effect immediately. A shared folder grants access to its included live pages even when an item’s link is private. Excluded items and legacy link permissions remain separate. One stable URL per page; reset_default_link replaces it. Reading records identify devices, not named people. For a page, allow_copy turns copying with copy_proposal on or off (omit it to leave it unchanged). Pass home: true (and no proposal_id / folder_id) to set the workspace home page at https://.24hw.cn/ — every workspace has one, members-only by default, owner only. The home page lists only pages and folders that are themselves public or passcode-protected, so opening it never exposes a private page. When a folder is opened, the result names pages that are private on their own but will be seen through the folder; pass that on to the user.
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": {
"visibility": "<visibility>"
},
"name": "set_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| home | No | Set the visibility of the workspace home page. When true, do not pass proposal_id / folder_id | |
| passcode | No | Custom passcode: 4–16 letters or digits. Usually omit it: the platform generates or keeps one and the author sees it in the console. Never ask the user to say a passcode in the chat. | |
| folder_id | No | Change folder visibility, sharing all included pages through one link. Supply exactly one of folder_id or proposal_id. | |
| allow_copy | No | Pages only: whether people with the link may copy it into their own workspace with copy_proposal (omit to leave unchanged). | |
| people_add | No | visibility=people: names of the people to let in, e.g. ["Zhang San", "Li from finance"]. Each gets a link that only opens in their own WeChat (they confirm the first time; on a computer they scan a code), and the page becomes private. Sending each link to its person is outward-facing, so confirm with the user first. Personal feature (30 people per page; unlimited on Pro) | |
| visibility | Yes | private = workspace members only · passcode · public = anyone · people = specific people only (pages only; use people_add / people_remove, or neither to list) | |
| proposal_id | No | Change one page’s visibility. Supply exactly one of proposal_id or folder_id. | |
| people_remove | No | visibility=people: link_ids to remove (shown in the list); those links stop working at once |