Arrange the workspace home page
set_homeTurn the workspace home page https://.hy.24haowan.com/ into one link that holds everything (for a social-media bio, a WeChat signature or a business-card QR code): 1–3 pinned large cards, section headings, external link cards (website, shop, social accounts…) and contact buttons (add-on-WeChat QR code, phone, email, or one item). Call with no arguments to read the current state (layout, links, contact buttons, clicks in the last 7 days). Items are refs: p:, f:, l: (add links first with links_add; with section they go straight into that section).
layout replaces the whole layout {pinned, sections:[{title, items}], rest:"auto"|"none", hidden}; null restores the automatic layout. Or pass only sections / rest, or use pin / unpin / hide / show.
rest=auto: public pages not placed anywhere follow, newest first; none: only pinned and sectioned items show.
hide: do not list a page / folder on the home page without changing its own visibility (its link still works); show undoes it. ★ The home page is a showcase, not a key: it only shows content that is itself public or passcode-protected; private items placed in the layout stay invisible to readers (the result names them). The home page is members-only by default; to share it, ask the user and then use set_visibility(home: true). ★ External links accept https / tel / mailto only; readers first see a “leaving LivePage” page, which also counts the click. ★ Free: pinning, sections, external links, contact buttons. Premium (workspace owner): theme colour and banner image. Editors and owners can call it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bio | No | 头像下的简介,≤80 字,最多 3 行;null = 去掉 | |
| pin | No | 置顶(最多 3 项,只能是页面或合集) | |
| hide | No | 在主页上隐藏(不改它自己的可见性) | |
| rest | No | ||
| show | No | 取消隐藏 | |
| theme | No | 配色(高级);null = 品牌色 | |
| unpin | No | ||
| layout | No | 整份版式(替换);null = 回到自动排法 | |
| contact | No | ||
| sections | No | 只换分组(标题 ≤16 字,每组 ≤50 项) | |
| links_add | No | ||
| links_remove | No | 要删的外链 id(或 l:<id>) | |
| banner_base64 | No | 横幅图(高级,PNG / JPEG 的 base64);空串 = 去掉 |