开发者
page-builder-sandwich 功能参考
page-builder-sandwich 将其操作注册到 WordPress Abilities API。这些能力既是该网站自身服务器上的 MCP 工具,也是 /wp-json/wp-abilities/v1 下的 REST 路由。此页面由该插件自身的注册表生成。
服务端点
通过 HTTP 的 MCP(可流式传输)
https://example.com/wp-json/pbs/v1/mcp通过 WP-CLI 的 MCP(标准输入和输出)
wp mcp-adapter serve --server=page-builder-sandwich --user=<login>REST:列出功能
/wp-json/wp-abilities/v1/abilities?category=page-builder-sandwichREST:运行能力
/wp-json/wp-abilities/v1/abilities/<name>/run身份验证和权限
HTTP 请求使用 WordPress 应用程序密码(HTTP Basic)进行身份验证。连接到 MCP 服务器需要具备下方显示的权限;然后每个功能会根据每个对象检查其自身的权限。只读功能使用 GET 运行,其输入位于查询字符串中;其他功能使用 POST 和 JSON 主体 {"input": {…}} 运行。
示例
# REST:运行能力
curl -u your-username:your-application-password \
"https://example.com/wp-json/wp-abilities/v1/abilities/pbs/get-breakpoints/run"# MCP (JSON-RPC over HTTP, after "initialize")
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"pbs-get-breakpoints","arguments":{}}}所有功能
由插件的 abilities.json 生成,该文件本身由运行中的站点生成;当两者不一致时测试将失败。
| 权限 | 其功能 | 版本 | 剩余 | 权限 | 参数 |
|---|---|---|---|---|---|
pbs/activate-custom-fontpbs-activate-custom-font | 启用已上传的字体 (Pro) 使上传的自定义字体(媒体库中的字体文件,通过 ID 识别)在字体选择器中可用。 | 专业版 | POST …/abilities/pbs/activate-custom-font/run | edit_theme_options (the REST route's own check) | id: integer (必填) |
pbs/add-local-fontpbs-add-local-font | 自托管字体 下载 Google 字体系列(family、weights、italic)并通过本网站提供服务。 | 免费版 | POST …/abilities/pbs/add-local-font/run | manage_options (the REST route's own check) | family: string (必填), weights: array, italic: boolean |
pbs/add-sectionpbs-add-section | 添加页面分区 向页面添加现成区块:在页面开头、结尾,或在指定位置的区块之后。 | 免费版 | POST …/abilities/pbs/add-section/run | edit_post on that page | id: integer (必填), section: string (必填), position: start|end|after, after: integer |
pbs/apply-brand-kitpbs-apply-brand-kit | 应用品牌工具包 (Pro) 将已保存的品牌套件的颜色和字体应用于网站设计。 | 专业版 | POST …/abilities/pbs/apply-brand-kit/run | edit_theme_options (the REST route's own check) | 无 |
pbs/apply-kitpbs-apply-kit | 导入网站工具包 导入网站套件的页面(全部或指定的页面),可选择是否将其发布、设置为主页并添加到菜单中。再次导入会更新相同的页面。 | 免费版 | POST …/abilities/pbs/apply-kit/run | edit_pages and publish_pages; manage_options to set the home page | slug: string (必填), pages: array, publish: boolean, front: boolean, menu: boolean |
pbs/apply-replacepbs-apply-replace | 应用查找替换 (Pro) 应用已预览的作业。每个更改过的文章都会为 pbs/undo-replace 保留一个备份。 | 专业版 | POST …/abilities/pbs/apply-replace/run | manage_options (the REST route's own check) | id: string (必填) |
pbs/build-landing-pagepbs-build-landing-page | 创建着陆页 引导式工作流:智能代理挑选适合您业务的区块,将页面构建为草稿并撰写文案。 | 免费版 | POST …/abilities/pbs/build-landing-page/run | edit_pages | business: string (必填) |
pbs/build-pagespbs-build-pages | 构建多个页面 单次调用最多创建 50 个页面,每个页面可由节和/或区块内容组成。每个页面均会单独检查和创建;返回结果将列出成功创建的每个页面及被拒绝的每个页面及其原因。 | 专业版 | POST …/abilities/pbs/build-pages/run | edit_pages; each page is checked on its own (publish_pages to publish) | pages: array (必填) |
pbs/connect-adobe-fontspbs-connect-adobe-fonts | 连接 Adobe Fonts (Pro) 通过套件 ID 连接 Adobe Fonts (Typekit) Web 项目,以便其字体显示在字体选择器中。 | 专业版 | POST …/abilities/pbs/connect-adobe-fonts/run | edit_theme_options (the REST route's own check) | kit: string (必填) |
pbs/connect-supportpbs-connect-support | 联系客服 将此站点连接到 Zinn Digital® 支持(姓名、电子邮件、同意)。 | 免费版 | POST …/abilities/pbs/connect-support/run | manage_options (the REST route's own check) | email: string (必填), name: string, consent: boolean (必填) |
pbs/convert-postpbs-convert-post | 转换一个旧版页面 将一个 5.x 页面转换为区块(已先备份)。 | 免费版 | POST …/abilities/pbs/convert-post/run | the REST route's own per-item permission check | id: string (必填) |
pbs/create-classpbs-create-class | 创建全局类 (Pro) 创建可重用的全局样式类:标签、别名及其样式。 | 专业版 | POST …/abilities/pbs/create-class/run | edit_theme_options (the REST route's own check) | label: string (必填), slug: string, s: object |
pbs/create-pagepbs-create-page | 创建页面 从各个区块(请参阅 pbs/list-sections)和/c 或块内容创建一个页面。新页面默认是草稿状态,除非指定了其他状态。 | 免费版 | POST …/abilities/pbs/create-page/run | edit_pages; publish_pages to publish or make private | title: string (必填), status: draft|pending|publish|private, sections: array, content: string |
pbs/create-teampbs-create-team | 创建一个团队(代理机构) 创建一个带有邀请码的其他站点可以加入的团队库 (name)。 | 专业版 | POST …/abilities/pbs/create-team/run | manage_options (the REST route's own check) | name: string (必填) |
pbs/deactivate-custom-fontpbs-deactivate-custom-font | 禁用已上传的字体 (Pro) 从字体选择器中移除自定义字体(按 slug)。 | 专业版 | POST …/abilities/pbs/deactivate-custom-font/run | edit_theme_options (the REST route's own check) | slug: string (必填) |
pbs/delete-classpbs-delete-class | 删除全局类 (Pro) 删除全局类。使用该类的元素将保留其内容但失去其样式。 | 专业版 | POST …/abilities/pbs/delete-class/run | edit_theme_options (the REST route's own check) | id: string (必填) |
pbs/delete-iconpbs-delete-icon | 删除已上传的图标 移除已上传的图标;使用过该图标的区块将保留其自身的副本。 | 免费版 | POST …/abilities/pbs/delete-icon/run | delete_post (the REST route's own check) | id: string (必填) |
pbs/delete-library-itempbs-delete-library-item | 删除云端库设计 (Pro) 从云端库中删除一个设计。 | 专业版 | POST …/abilities/pbs/delete-library-item/run | edit_posts (the REST route's own check) | item: string (必填), team: string |
pbs/delete-pagepbs-delete-page | 将页面移至回收站 将页面移至回收站。它可以在“页面”的“回收站”中恢复,保留 30 天。 | 免费版 | POST …/abilities/pbs/delete-page/run | delete_post on that page | id: integer (必填) |
pbs/delete-teampbs-delete-team | 删除资源库团队 (Agency) 删除团队及其资料库中的所有设计。 | 专业版 | POST …/abilities/pbs/delete-team/run | manage_options (the REST route's own check) | team: string (必填) |
pbs/disconnect-supportpbs-disconnect-support | 断开与支持的连接 取消此网站与支持服务的连接。 | 免费版 | POST …/abilities/pbs/disconnect-support/run | manage_options (the REST route's own check) | 无 |
pbs/duplicate-classpbs-duplicate-class | 复制全局类 (Pro) 复制一个新的 ID 下的全局类。 | 专业版 | POST …/abilities/pbs/duplicate-class/run | edit_theme_options (the REST route's own check) | id: string (必填) |
pbs/duplicate-pagepbs-duplicate-page | 复制页面 将页面(其标题、内容和模板)复制到新草稿中。 | 免费版 | POST …/abilities/pbs/duplicate-page/run | edit_post on the page and edit_pages | id: integer (必填), title: string |
pbs/export-designspbs-export-designs | 导出设计和设置 将所选的模板和图案(ID)以及可选的设置作为一个包导出,以便用于另一个站点。 | 免费版 | POST …/abilities/pbs/export-designs/run | manage_options (the REST route's own check) | ids: array, settings: boolean |
pbs/generate-pagepbs-generate-page | 使用人工智能撰写页面 使用(提供的或由AI从区块库中选择的)区块构建页面,并让AI根据您的简报重写所有文本,同时保留设计。使用插件AI设置中配置的AI提供商。除非另有要求,否则该页面将保存为草稿。 | 专业版 | POST …/abilities/pbs/generate-page/run | edit_pages; publish_pages to publish; the AI settings' role and spending rules | brief: string (必填), title: string, sections: array, status: draft|pending|publish|private |
pbs/get-blockpbs-get-block | 描述构建器块 返回单个区块的设置(属性及其类型、选项和默认值)、支持的功能、可包含的区块以及区块标记中的现成示例。 | 免费版 | GET …/abilities/pbs/get-block/run | edit_posts | name: string (必填) |
pbs/get-breakpointspbs-get-breakpoints | 查看响应式断点 返回响应式控件所使用的平板电脑和移动设备宽度(以及 Pro 版中的自定义断点)。 | 免费版 | GET …/abilities/pbs/get-breakpoints/run | edit_theme_options (the REST route's own check) | 无 |
pbs/get-design-globalspbs-get-design-globals | 阅读网站设计 返回全站颜色和字体(标题和正文),这些颜色和字体可供所有区块使用,正如“网站设计”屏幕中所显示的那样。 | 免费版 | GET …/abilities/pbs/get-design-globals/run | edit_theme_options (the REST route's own check) | 无 |
pbs/get-design-systempbs-get-design-system | 阅读设计系统 (Pro) 返回 Pro 设计系统:全局类、变量、设计标记、深色模式、品牌工具包和自定义字体。 | 专业版 | GET …/abilities/pbs/get-design-system/run | edit_theme_options (the REST route's own check) | 无 |
pbs/get-diagnosticspbs-get-diagnostics | 读取网站诊断 返回支持工单包含的诊断信息:版本、激活的插件、限制以及最近的错误。 | 免费版 | GET …/abilities/pbs/get-diagnostics/run | manage_options (the REST route's own check) | 无 |
pbs/get-library-accountpbs-get-library-account | 读取云端资料库账户 (Pro) 返回云端资料库的存储使用量、套餐配额及团队基本信息。 | 专业版 | GET …/abilities/pbs/get-library-account/run | edit_posts (the REST route's own check) | 无 |
pbs/get-library-itempbs-get-library-item | 获取云端库设计 (Pro) 返回一个已保存的设计,随时可插入此网站(其图片将导入媒体库中)。 | 专业版 | GET …/abilities/pbs/get-library-item/run | edit_posts (the REST route's own check) | item: string (必填), team: string |
pbs/get-library-storagepbs-get-library-storage | 读取自有存储设置 (Pro) 返回自带的 R2/S3 存储设置(绝不会返回密钥)。 | 专业版 | GET …/abilities/pbs/get-library-storage/run | manage_options (the REST route's own check) | 无 |
pbs/get-licencepbs-get-licence | 查看许可协议 返回此网站的 Page Builder Sandwich 方案、许可证状态、续订日期以及方案包含的内容。 | 免费版 | GET …/abilities/pbs/get-licence/run | manage_options (the REST route's own check) | 无 |
pbs/get-maintenancepbs-get-maintenance | 读取维护模式 (Pro) 返回维护 / 即将推出模式:模式、页面、重试时间以及哪些角色仍然可以访问该网站。 | 专业版 | GET …/abilities/pbs/get-maintenance/run | manage_options (the REST route's own check) | 无 |
pbs/get-migrationpbs-get-migration | 阅读旧版迁移 返回 5.x 内容转换的进度和报告。 | 免费版 | GET …/abilities/pbs/get-migration/run | the REST route's own per-item permission check | 无 |
pbs/get-newsletter-keyspbs-get-newsletter-keys | 阅读简讯连接(专业版) 指示是否已保存 Mailchimp 密钥(绝不会返回密钥本身)。 | 专业版 | GET …/abilities/pbs/get-newsletter-keys/run | edit_posts (the REST route's own check) | 无 |
pbs/get-pagepbs-get-page | 读取页面 返回页面的标题、状态、链接、区块内容以及构成该页面的各个分节(顶级区块)。 | 免费版 | GET …/abilities/pbs/get-page/run | edit_post on that page | id: integer (必填) |
pbs/get-replace-jobpbs-get-replace-job | 预览查找和替换 (Pro) 返回某个职位的匹配结果,按页显示,以便在申请前进行审核。 | 专业版 | GET …/abilities/pbs/get-replace-job/run | manage_options (the REST route's own check) | id: string (必填) |
pbs/get-reviews-sourcespbs-get-reviews-sources | 读取评论来源 (专业版) 返回“评论”区块显示的 Google 和 Trustpilot 来源。 | 专业版 | GET …/abilities/pbs/get-reviews-sources/run | manage_options (the REST route's own check) | 无 |
pbs/get-rolespbs-get-roles | 读取生成器权限 (Pro) 返回哪些角色可以使用生成器、设计、代码和模板(客户模式)。 | 专业版 | GET …/abilities/pbs/get-roles/run | manage_options (the REST route's own check) | 无 |
pbs/get-settingspbs-get-settings | 读取插件设置 返回前端类前缀、beta更新状态以及是否允许AI代理(MCP)。 | 免费版 | GET …/abilities/pbs/get-settings/run | manage_options (the REST route's own check) | 无 |
pbs/get-support-connectionpbs-get-support-connection | 读取支持连接 指示此网站是否已连接到 Zinn Digital® 支持,以及连接的身份。 | 免费版 | GET …/abilities/pbs/get-support-connection/run | manage_options (the REST route's own check) | refresh: boolean |
pbs/get-white-labelpbs-get-white-label | 阅读白标 (代理商) 返回白标设置:开启或关闭、显示的名称以及哪些用户仍能看到原始内容。 | 专业版 | GET …/abilities/pbs/get-white-label/run | manage_options (the REST route's own check) | 无 |
pbs/import-designspbs-import-designs | 导入设计和设置 导入由 pbs/export-designs 创建的包(首先运行 dryRun 以查看将发生哪些更改;模式:skip 或 replace;媒体;设置)。 | 免费版 | POST …/abilities/pbs/import-designs/run | manage_options (the REST route's own check) | package: object (必填), mode: skip|replace|duplicate, settings: boolean, media: boolean, dryRun: boolean |
pbs/invite-team-memberpbs-invite-team-member | 邀请站点加入团队(代理商) 创建一个一次性邀请码(角色:只读或读写;标签;有效天数)。该代码仅显示一次。 | 专业版 | POST …/abilities/pbs/invite-team-member/run | manage_options (the REST route's own check) | team: string (必填), role: read|write, days: integer, label: string |
pbs/join-teampbs-join-team | 加入团队 (Pro) 使用邀请码加入团队共享库。 | 专业版 | POST …/abilities/pbs/join-team/run | manage_options (the REST route's own check) | code: string (必填) |
pbs/leave-teampbs-leave-team | 退出团队 (Pro) 退出本网站加入的团队共享库。 | 专业版 | POST …/abilities/pbs/leave-team/run | manage_options (the REST route's own check) | 无 |
pbs/list-blockspbs-list-blocks | 列出构建器模块 列出此网站可使用的所有 Page Builder Sandwich 区块(当 Pro 版激活时也包括 Pro 区块):名称、标题、类别和说明。使用 pbs/get-block 获取区块的设置,然后将区块放入页面内容中。 | 免费版 | GET …/abilities/pbs/list-blocks/run | edit_posts | search: string |
pbs/list-formspbs-list-forms | 表单列表 列出使用表单块构建的表单以及可以嵌入的表单插件。 | 免费版 | GET …/abilities/pbs/list-forms/run | edit_posts (the REST route's own check) | 无 |
pbs/list-kitspbs-list-kits | 列出网站套件 列出此网站可导入的网站套件(针对特定业务类型的一组现成页面)。 | 免费版 | GET …/abilities/pbs/list-kits/run | edit_pages and publish_pages | refresh: boolean |
pbs/list-library-itemspbs-list-library-items | 列出云端库设计 (Pro) 列出保存到云端库的设计(类型:区块、页面或图案;团队:团队库)。 | 专业版 | GET …/abilities/pbs/list-library-items/run | edit_posts (the REST route's own check) | team: string, kind: |section|page|style |
pbs/list-local-fontspbs-list-local-fonts | 列出自行托管的字体 列出此网站自行托管的 Google 字体(下载一次、由本网站提供服务、无需向 Google 发送请求)。 | 免费版 | GET …/abilities/pbs/list-local-fonts/run | manage_options (the REST route's own check) | 无 |
pbs/list-lottiepbs-list-lottie | 列出 Lottie 动画 (Pro) 列出已上传的 Lottie 动画。 | 专业版 | GET …/abilities/pbs/list-lottie/run | edit_posts (the REST route's own check) | 无 |
pbs/list-pagespbs-list-pages | 列出页面 列出您可以编辑的页面,按最新排序,并提供可选的搜索功能。 | 免费版 | GET …/abilities/pbs/list-pages/run | edit_pages; only pages the user can edit are listed | search: string, status: any|draft|pending|publish|private, page: integer, per_page: integer |
pbs/list-replace-jobspbs-list-replace-jobs | 列出查找和替换任务(专业版) 列出全站查找替换任务及其状态。 | 专业版 | GET …/abilities/pbs/list-replace-jobs/run | manage_options (the REST route's own check) | 无 |
pbs/list-sectionspbs-list-sections | 列出区块 列出可添加到页面的现成区块(如首屏横幅、功能特点、常见问题解答、客户见证、行动号召等)。 | 免费版 | GET …/abilities/pbs/list-sections/run | edit_pages | search: string |
pbs/list-support-accesspbs-list-support-access | 列出临时支持登录名 列出授予我们团队的临时支持用户以及各自的过期时间。 | 免费版 | GET …/abilities/pbs/list-support-access/run | manage_options (the REST route's own check) | 无 |
pbs/list-team-memberspbs-list-team-members | 列出团队成员 (Pro) 列出团队中的站点及其访问权限。 | 专业版 | GET …/abilities/pbs/list-team-members/run | manage_options (the REST route's own check) | team: string (必填) |
pbs/list-teamspbs-list-teams | 列出库团队 (Pro) 列出此网站所属或拥有的团队。 | 专业版 | GET …/abilities/pbs/list-teams/run | manage_options (the REST route's own check) | 无 |
pbs/list-transferablepbs-list-transferable | 列出可导出的内容 列出可导出到另一个网站的模板、模式和设置。 | 免费版 | GET …/abilities/pbs/list-transferable/run | manage_options (the REST route's own check) | 无 |
pbs/list-uploaded-iconspbs-list-uploaded-icons | 列出已上传的图标 列出上传到图标库的 SVG 图标,按最新时间排序。 | 免费版 | GET …/abilities/pbs/list-uploaded-icons/run | edit_posts (the REST route's own check) | page: integer, per_page: integer |
pbs/move-sectionpbs-move-section | 移动分区 将页面的一部分从一个位置移动到另一个位置(从 0 开始,与 pbs/get-page 列出的顺序相同)。 | 免费版 | POST …/abilities/pbs/move-section/run | edit_post on that page | id: integer (必填), from: integer (必填), to: integer (必填) |
pbs/open-support-ticketpbs-open-support-ticket | 提交支持工单 使用此网站的诊断信息提交支持工单(主题、消息、类型、电子邮件);access_days 和 credentials 可选地授予我们团队临时访问权限。 | 免费版 | POST …/abilities/pbs/open-support-ticket/run | manage_options (the REST route's own check) | 无 |
pbs/record-support-consentpbs-record-support-consent | 同意支持诊断 记录管理员同意在提交支持工单时发送诊断信息。 | 免费版 | POST …/abilities/pbs/record-support-consent/run | manage_options (the REST route's own check) | 无 |
pbs/refresh-reviewspbs-refresh-reviews | 立即刷新评价 (Pro) 立即获取最新的 Trustpilot 评论,而不必等待每日刷新。 | 专业版 | POST …/abilities/pbs/refresh-reviews/run | manage_options (the REST route's own check) | 无 |
pbs/remove-blockpbs-remove-block | 从页面中移除区块 根据路径从页面中删除一个区块(整个部分,或部分内部的区块)。该页面的以前版本将保留在其修订版中。 | 免费版 | POST …/abilities/pbs/remove-block/run | edit_post on that page | id: integer (必填), path: array (必填) |
pbs/remove-library-storagepbs-remove-library-storage | 停止使用您自己的存储空间 (Pro) 移除了自带存储设置;将重新使用套餐自带的存储空间。 | 专业版 | POST …/abilities/pbs/remove-library-storage/run | manage_options (the REST route's own check) | 无 |
pbs/remove-local-fontpbs-remove-local-font | 移除自托管字体 删除自托管字体系列的文。 | 免费版 | POST …/abilities/pbs/remove-local-font/run | manage_options (the REST route's own check) | family: string (必填) |
pbs/remove-team-memberpbs-remove-team-member | 移除团队成员(代理机构) 从团队中移除网站。 | 专业版 | POST …/abilities/pbs/remove-team-member/run | manage_options (the REST route's own check) | team: string (必填), member: string (必填) |
pbs/revoke-support-accesspbs-revoke-support-access | 撤销临时技术支持登录权限 立即移除临时支持用户 (ids)。 | 免费版 | POST …/abilities/pbs/revoke-support-access/run | manage_options (the REST route's own check) | ids: array (必填) |
pbs/save-library-itempbs-save-library-item | 保存设计至云端图库 (Pro) 将区块标记(标题、类型、标记、样式、标签)保存到您的云端库或团队云端库中;图片也将一并打包。 | 专业版 | POST …/abilities/pbs/save-library-item/run | edit_posts (the REST route's own check) | team: string, kind: section|page|style (必填), title: string (必填), tags: array, markup: string, styles: object |
pbs/set-library-storagepbs-set-library-storage | 使用您自己的存储空间(Pro) 保存自备存储:提供商(r2 或 s3)、存储桶、区域、端点、前缀、key_id、secret、已启用。 | 专业版 | POST …/abilities/pbs/set-library-storage/run | manage_options (the REST route's own check) | 无 |
pbs/set-maintenancepbs-set-maintenance | 更改维护模式 (Pro) 开启或关闭维护模式 (503) 或即将推出模式 (mode),并可指定要显示的页面 (page_id)、重试时间 (retry_after) 以及可绕过此模式的角色。 | 专业版 | POST …/abilities/pbs/set-maintenance/run | manage_options (the REST route's own check) | mode: off|maintenance|coming_soon, page_id: integer, roles: array, retry_after: integer |
pbs/set-newsletter-keyspbs-set-newsletter-keys | 连接 Mailchimp (Pro) 保存(若值为空,则移除)时事通讯区块所使用的 Mailchimp API 密钥。 | 专业版 | POST …/abilities/pbs/set-newsletter-keys/run | manage_options (the REST route's own check) | mailchimp: string (必填) |
pbs/set-reviews-sourcespbs-set-reviews-sources | 更改评价来源(高级版) 设置“评论” (Reviews) 区块读取的 Google 地点和 Trustpilot 企业。 | 专业版 | POST …/abilities/pbs/set-reviews-sources/run | manage_options (the REST route's own check) | google: object, trustpilot: object |
pbs/set-rolespbs-set-roles | 更改生成器权限 (Pro) 按角色设置构建器允许的操作(角色),例如仅内容客户端角色。 | 专业版 | POST …/abilities/pbs/set-roles/run | manage_options (the REST route's own check) | roles: object (必填) |
pbs/set-white-labelpbs-set-white-label | 更改白标(代理商) 开启或关闭白标并设置客户看到的名称 (enabled, name, agency_users)。 | 专业版 | POST …/abilities/pbs/set-white-label/run | manage_options (the REST route's own check) | 无 |
pbs/start-migrationpbs-start-migration | 转换旧版内容 开始(或重新开始)将每个 5.x 页面转换为块;每篇发布内容都会先进行备份。 | 免费版 | POST …/abilities/pbs/start-migration/run | the REST route's own per-item permission check | 无 |
pbs/start-replacepbs-start-replace | 全站查找与替换 (Pro) 启动块安全查找和替换(查找、替换、类型:文本、链接或颜色;match_case;类型)。在执行 pbs/apply-replace 之前不会有任何更改。 | 专业版 | POST …/abilities/pbs/start-replace/run | manage_options (the REST route's own check) | find: string (必填), replace: string, kind: text|link|colour, types: array, match_case: boolean |
pbs/start-trialpbs-start-trial | 开始免费 Pro 试用 为此站点开始 14 天 Page Builder Sandwich Pro 试用(无需付款)。 | 免费版 | POST …/abilities/pbs/start-trial/run | manage_options (the REST route's own check) | 无 |
pbs/test-library-storagepbs-test-library-storage | 测试您自己的存储空间(专业版) 写入、读取和删除您自有存储中的测试对象,并报告每个步骤。 | 专业版 | POST …/abilities/pbs/test-library-storage/run | manage_options (the REST route's own check) | 无 |
pbs/undo-convert-postpbs-undo-convert-post | 撤销一次转换 从备份中还原一个已转换的页面。 | 免费版 | POST …/abilities/pbs/undo-convert-post/run | the REST route's own per-item permission check | id: string (必填) |
pbs/undo-migrationpbs-undo-migration | 撤销旧版迁移 将每个已转换的文章从其备份中恢复。 | 免费版 | POST …/abilities/pbs/undo-migration/run | the REST route's own per-item permission check | 无 |
pbs/undo-replacepbs-undo-replace | 撤销查找和替换 (Pro) 恢复职位变动前发布的文章(编辑过的文章将保留其编辑内容)。 | 专业版 | POST …/abilities/pbs/undo-replace/run | manage_options (the REST route's own check) | id: string (必填) |
pbs/update-blockpbs-update-block | 更改一个区块的设置 更改通过路径找到的页面内单个块的设置(属性);您发送的属性将与当前属性合并。适用于网站根据其设置呈现的块;对于 HTML 保存在页面中的块,请通过 pbs/update-page 发送新的标记。 | 免费版 | POST …/abilities/pbs/update-block/run | edit_post on that page | id: integer (必填), path: array (必填), attributes: object (必填) |
pbs/update-brand-kitpbs-update-brand-kit | 更改品牌套件 (Pro) 保存品牌套件:名称、标志、颜色、标题和正文字体,以及人工智能写作使用的品牌基调。 | 专业版 | POST …/abilities/pbs/update-brand-kit/run | edit_theme_options (the REST route's own check) | name: string, logo: integer, colors: array, headingFont: string, bodyFont: string, voice: string |
pbs/update-breakpointspbs-update-breakpoints | 更改响应式断点 更改平板电脑和手机的宽度(以像素为单位);使用 Pro 版可自定义额外的断点。 | 免费版 | POST …/abilities/pbs/update-breakpoints/run | edit_theme_options (the REST route's own check) | tablet: integer, mobile: integer, custom: array |
pbs/update-classpbs-update-class | 更改全局类 (Pro) 更改全局类的标签、别名或样式;所有使用该类的元素都会更新。 | 专业版 | POST …/abilities/pbs/update-class/run | edit_theme_options (the REST route's own check) | id: string (必填), label: string, slug: string, s: object |
pbs/update-dark-modepbs-update-dark-mode | 更改深色模式 (Pro) 设置暗黑模式(模式:off、auto 或 toggle)及其颜色。 | 专业版 | POST …/abilities/pbs/update-dark-mode/run | edit_theme_options (the REST route's own check) | mode: device|light|dark (必填), colors: object |
pbs/update-design-globalspbs-update-design-globals | 更改网站设计 更改全站的颜色 (colors)、字体 (fonts, headingFont, bodyFont)。每个页面都会应用此更改;主题的 theme.json 会保持同步。 | 免费版 | POST …/abilities/pbs/update-design-globals/run | edit_theme_options (the REST route's own check) | colors: object, fonts: object, bodyFont: string, headingFont: string |
pbs/update-pagepbs-update-page | 更新页面 更改页面的标题、状态或区块内容。您发送的内容将替换页面的现有内容。 | 免费版 | POST …/abilities/pbs/update-page/run | edit_post on that page; publish_pages to publish or make private | id: integer (必填), title: string, status: draft|pending|publish|private, sections: array, content: string |
pbs/update-settingspbs-update-settings | 更改插件设置 更改前端类前缀(1 到 8 个小写字母或数字,以字母开头)和/或开启或关闭 AI 代理(MCP)(`mcp: false` 会移除所有功能和 MCP 端点)。 | 免费版 | POST …/abilities/pbs/update-settings/run | manage_options (the REST route's own check) | prefix: string, mcp: boolean |
pbs/update-tokenspbs-update-tokens | 更改设计令牌 (Pro) 更改间距、圆角和阴影比例(space、radius、shadow),或将其重置(reset)。 | 专业版 | POST …/abilities/pbs/update-tokens/run | edit_theme_options (the REST route's own check) | space: array, radius: array, shadow: array, reset: boolean |
pbs/update-variablespbs-update-variables | 修改 CSS 变量 (Pro) 替换站点的设计变量(变量:名称和值的列表)。 | 专业版 | POST …/abilities/pbs/update-variables/run | edit_theme_options (the REST route's own check) | variables: array (必填) |
pbs/upload-iconpbs-upload-icon | 上传图标 将 SVG 图标(名称、SVG 标记)添加到图标库;SVG 会先进行净化处理。 | 免费版 | POST …/abilities/pbs/upload-icon/run | upload_files (the REST route's own check) | name: string (必填), svg: string (必填) |
pbs/upload-lottiepbs-upload-lottie | 上传 Lottie 动画 (Pro) 验证 Lottie JSON 文档 (json, name) 并将其发布为 Lottie 块的静态文件。 | 专业版 | POST …/abilities/pbs/upload-lottie/run | upload_files (the REST route's own check) | name: string (必填), json: string (必填) |