开发者

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-sandwich

REST:运行能力

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