开发者

tranzly 功能参考

tranzly 将其操作注册到 WordPress Abilities API。这些能力既是该网站自身服务器上的 MCP 工具,也是 /wp-json/wp-abilities/v1 下的 REST 路由。此页面由该插件自身的注册表生成。

用户指南:连接人工智能应用

服务端点

通过 HTTP 的 MCP(可流式传输)

https://example.com/wp-json/tranzly/v1/mcp

通过 WP-CLI 的 MCP(标准输入和输出)

wp mcp-adapter serve --server=tranzly --user=<login>

REST:列出功能

/wp-json/wp-abilities/v1/abilities?category=tranzly

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/tranzly/get-comments-setting/run"
# MCP (JSON-RPC over HTTP, after "initialize")
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"tranzly-get-comments-setting","arguments":{}}}

所有功能

由插件的 abilities.json 生成,该文件本身由运行中的站点生成;当两者不一致时测试将失败。

权限其功能版本剩余权限参数
tranzly/bulk-translate
tranzly-bulk-translate
翻译整个网站
为给定内容类型的每个原文启动后台翻译作业(若未给定则为所有已翻译类型):缺失的翻译、过期的翻译或所有翻译。返回已启动的作业,每种语言一个。
专业版POST …/abilities/tranzly/bulk-translate/runedit_posts; publish_posts to publishlanguages: array (必填), post_types: array, scope: missing|stale|all, engine: string, publish: boolean
tranzly/cancel-job
tranzly-cancel-job
取消任务
停止作业;已完成的翻译将会保留。
免费版POST …/abilities/tranzly/cancel-job/runmanage_options (the REST route's own check)id: string (必填)
tranzly/check-quality
tranzly-check-quality
使用 AI 检查翻译
让AI将一种译文与原文进行对比并打分,然后将关于该译文的报告存储起来。使用Tranzly工作流设置中配置的质量检查AI模型。
专业版POST …/abilities/tranzly/check-quality/runedit_post on that translationid: integer (必填)
tranzly/connect-support
tranzly-connect-support
联系客服
将此站点连接到 Zinn Digital® 支持(姓名、电子邮件、同意)。
免费版POST …/abilities/tranzly/connect-support/runmanage_options (the REST route's own check)email: string (必填), name: string, consent: boolean (必填)
tranzly/correct-segments
tranzly-correct-segments
更正翻译
保存翻译的已校正片段(片段:键到文本);已校正的文本受到保护,不会被重新翻译。
免费版POST …/abilities/tranzly/correct-segments/runedit_post (the REST route's own check)id: string (必填), segments: object (必填)
tranzly/create-job
tranzly-create-job
开始翻译任务
启动后台作业,将列出的文章 (posts) 或整个文章类型翻译成目标语言 (langs)。
免费版POST …/abilities/tranzly/create-job/runedit_posts (the REST route's own check)posts: array, post_type: string, langs: array (必填), engine: string, status: publish|draft, force: boolean
tranzly/create-post-translation
tranzly-create-post-translation
创建空白翻译
为手动编写创建文章在某种语言 (lang) 中的草稿翻译,不使用机器引擎。
免费版POST …/abilities/tranzly/create-post-translation/runthe REST route's own per-item permission checkid: string (必填), lang: string (必填), name: string, slug: string, description: string
tranzly/create-term-translation
tranzly-create-term-translation
手动创建术语翻译
使用您提供的名称、别名和描述,为某个术语创建一种语言的翻译。
免费版POST …/abilities/tranzly/create-term-translation/runthe REST route's own per-item permission checkid: string (必填), lang: string (必填), name: string, slug: string, description: string
tranzly/disconnect-support
tranzly-disconnect-support
断开与支持的连接
取消此网站与支持服务的连接。
免费版POST …/abilities/tranzly/disconnect-support/runmanage_options (the REST route's own check)无
tranzly/estimate
tranzly-estimate
估计翻译
在不花費任何費用的情況下,使用引擎估算將貼文(posts 或 post_type)翻譯成各語言(langs)所需的字元數與成本。
免费版POST …/abilities/tranzly/estimate/runedit_posts (the REST route's own check)posts: array, post_type: string, langs: array (必填), engine: string
tranzly/estimate-bulk
tranzly-estimate-bulk
估算网站翻译(Pro版)
在开始整站翻译(文章类型、范围、引擎)之前,估算某种语言的翻译量。
专业版POST …/abilities/tranzly/estimate-bulk/runedit_posts (the REST route's own check)post_types: array, scope: missing|stale|all, engine: string, lang: string (必填), after: integer
tranzly/export-translation-file
tranzly-export-translation-file
导出供人工翻译的文件
返回包含原文和某一语言译文的 XLIFF 或 CSV 文件(以文本形式),供译者或翻译机构使用:指定的文章,或某内容类型在某一状态下(缺失、过时、已翻译或全部;使用 after 参数重复)最多 100 个原文的分页。可通过 tranzly/upload-translation-file 将其重新导入。
专业版GET …/abilities/tranzly/export-translation-file/runedit_posts; each post is included only if the user may edit itlang: string (必填), format: xliff|csv, posts: array, post_type: string, state: all|missing|stale|translated, after: integer
tranzly/fix-status
tranzly-fix-status
翻译缺失的内容
对语言和文章类型中每个缺失(或过时)的项目进行队列翻译。
免费版POST …/abilities/tranzly/fix-status/runedit_posts (the REST route's own check)post_type: string, lang: string (必填), state: missing|stale|quality (必填)
tranzly/get-comments-setting
tranzly-get-comments-setting
阅读评论处理 (Pro)
返回评论是跨语言共享还是按语言独立保留。
专业版GET …/abilities/tranzly/get-comments-setting/runmoderate_comments (the REST route's own check)无
tranzly/get-deepl-usage
tranzly-get-deepl-usage
阅读 DeepL 使用量
返回本月已使用的字符数以及已保存的 DeepL 密钥额度。
免费版GET …/abilities/tranzly/get-deepl-usage/runmanage_options (the REST route's own check)无
tranzly/get-diagnostics
tranzly-get-diagnostics
读取网站诊断
返回支持工单包含的诊断信息:版本、激活的插件、限制以及最近的错误。
免费版GET …/abilities/tranzly/get-diagnostics/runmanage_options (the REST route's own check)无
tranzly/get-display
tranzly-get-display
阅读显示选项
返回语言切换器和页脚版权显示选项。
免费版GET …/abilities/tranzly/get-display/runmanage_options (the REST route's own check)无
tranzly/get-engine-settings
tranzly-get-engine-settings
读取引擎设置
返回默认和备用引擎、按语言配置的引擎、各个引擎的状态以及本月的消费金额。
免费版GET …/abilities/tranzly/get-engine-settings/runmanage_options (the REST route's own check)无
tranzly/get-glossary
tranzly-get-glossary
阅读词汇表
返回从未翻译的词语、固定术语翻译以及每种语言的语调。
专业版GET …/abilities/tranzly/get-glossary/runmanage_options无
tranzly/get-integrations
tranzly-get-integrations
查看集成
列出 Tranzly 支持且当前处于活动状态的 SEO、WooCommerce、页面构建器和表单插件。
免费版GET …/abilities/tranzly/get-integrations/runmanage_options (the REST route's own check)无
tranzly/get-job
tranzly-get-job
读取作业进度
返回单个任务的进度和计数。
免费版GET …/abilities/tranzly/get-job/runmanage_options (the REST route's own check)id: string (必填)
tranzly/get-job-failures
tranzly-get-job-failures
读取作业失败信息
列出作业中失败的项目以及各自的原因。
免费版GET …/abilities/tranzly/get-job-failures/runmanage_options (the REST route's own check)id: string (必填)
tranzly/get-legacy-import
tranzly-get-legacy-import
读取 Tranzly 2.x 导入
返回从 Tranzly 2.x 导入翻译的状态和报告。
免费版GET …/abilities/tranzly/get-legacy-import/runmanage_options (the REST route's own check)无
tranzly/get-licence
tranzly-get-licence
查看许可协议
返回此网站的 Tranzly 计划、许可证状态、续订日期以及该计划包含的内容。
免费版GET …/abilities/tranzly/get-licence/runmanage_options (the REST route's own check)无
tranzly/get-menus
tranzly-get-menus
按语言读取菜单
返回每种语言在各个菜单位置中显示的菜单。
免费版GET …/abilities/tranzly/get-menus/runedit_theme_options (the REST route's own check)无
tranzly/get-post-group
tranzly-get-post-group
读取文章的翻译
列出文章的翻译组:每个语言的成员及其标题、状态和编辑链接。
免费版GET …/abilities/tranzly/get-post-group/runedit_post and edit_term (the REST route's own check)id: string (必填)
tranzly/get-quality-report
tranzly-get-quality-report
阅读质量报告 (Pro)
返回翻译的 AI 质量报告:评分以及被标记的片段。
专业版GET …/abilities/tranzly/get-quality-report/runedit_post (the REST route's own check)id: string (必填)
tranzly/get-segments
tranzly-get-segments
对照阅读译文
返回翻译的片段以及原文片段,供审阅和修正。
免费版GET …/abilities/tranzly/get-segments/runedit_post (the REST route's own check)id: string (必填)
tranzly/get-shared-strings
tranzly-get-shared-strings
读取主题和插件文本
返回主题和插件的文本(范围)及其对应语言的翻译。
免费版GET …/abilities/tranzly/get-shared-strings/runedit_theme_options (the REST route's own check)lang: string (必填), scope: menus|site|templates|gettext.theme-twentytwentyfive|gettext.plugin-page-builder-sandwich|gettext.plugin-tranzly
tranzly/get-site-strings
tranzly-get-site-strings
阅读网站的各种语言文本
返回指定语言的网站标题、副标题和小组件文本。
免费版GET …/abilities/tranzly/get-site-strings/runmanage_options (the REST route's own check)lang: string (必填)
tranzly/get-support-connection
tranzly-get-support-connection
读取支持连接
指示此网站是否已连接到 Zinn Digital® 支持,以及连接的身份。
免费版GET …/abilities/tranzly/get-support-connection/runmanage_options (the REST route's own check)refresh: boolean
tranzly/get-term-group
tranzly-get-term-group
读取术语的翻译
列出分类或标签的翻译组。
免费版GET …/abilities/tranzly/get-term-group/runedit_post and edit_term (the REST route's own check)id: string (必填)
tranzly/get-urls
tranzly-get-urls
读取地址设置
返回语言在网址(文件夹、子域名或域名)中的显示方式、已翻译的别名和基础路径,以及对未翻译页面的 noindex 设置。
免费版GET …/abilities/tranzly/get-urls/runmanage_options (the REST route's own check)无
tranzly/get-workflow-settings
tranzly-get-workflow-settings
读取工作流设置 (Pro)
返回发布时和更新时的自动翻译、发布前审核,以及AI质量检查的阈值、提供商和模型。
专业版GET …/abilities/tranzly/get-workflow-settings/runmanage_options (the REST route's own check)无
tranzly/import-from-source
tranzly-import-from-source
从 WPML、Polylang 或 TranslatePress (Pro) 迁移
导入来自另一个多语言插件的下一页翻译(模式:预演或运行;光标)。
专业版POST …/abilities/tranzly/import-from-source/runmanage_options (the REST route's own check)source: string (必填), mode: dry-run|run|undo, cursor: string
tranzly/import-translation-file
tranzly-import-translation-file
写入导入的文件 (Pro)
写入来自上传的翻译文件的下一页文章(重复使用 after 直到完成)。
专业版POST …/abilities/tranzly/import-translation-file/runedit_posts (the REST route's own check)token: string (必填), after: integer
tranzly/link-post
tranzly-link-post
将现有文章关联为翻译
将现有文章(目标文章)设为该文章某种语言的翻译。
免费版POST …/abilities/tranzly/link-post/runedit_post and edit_term (the REST route's own check)id: string (必填), lang: string (必填), target: integer (必填)
tranzly/list-engines
tranzly-list-engines
列出翻译引擎
列出翻译引擎、各自是否已设置,以及在未指定名称时使用哪一个。
免费版GET …/abilities/tranzly/list-engines/runedit_posts无
tranzly/list-import-sources
tranzly-list-import-sources
列出要迁移的插件 (Pro)
列出此网站上找到可导入的 WPML、Polylang 和 TranslatePress 数据。
专业版GET …/abilities/tranzly/list-import-sources/runmanage_options (the REST route's own check)无
tranzly/list-jobs
tranzly-list-jobs
列出翻译任务
列出后台翻译任务,按最新排序,并显示进度。
免费版GET …/abilities/tranzly/list-jobs/runedit_posts (the REST route's own check)无
tranzly/list-languages
tranzly-list-languages
列出语言
列出该网站的语言。第一个是编写原始内容时所使用的语言。
免费版GET …/abilities/tranzly/list-languages/runedit_posts无
tranzly/list-status-items
tranzly-list-status-items
列出缺失或过期的内容
按页列出原文及其在某个语言中的翻译状态(状态:缺失、已过期、最新)。
免费版GET …/abilities/tranzly/list-status-items/runedit_posts (the REST route's own check)post_type: string, lang: string (必填), state: all|missing|stale|translated|human|machine|review|quality, after: integer
tranzly/list-support-access
tranzly-list-support-access
列出临时支持登录名
列出授予我们团队的临时支持用户以及各自的过期时间。
免费版GET …/abilities/tranzly/list-support-access/runmanage_options (the REST route's own check)无
tranzly/list-theme-strings
tranzly-list-theme-strings
列出主题和插件文本源 (Pro)
列出可扫描其文本以进行翻译的主题和插件,以及各自包含多少个字符串。
专业版GET …/abilities/tranzly/list-theme-strings/runmanage_options (the REST route's own check)无
tranzly/open-support-ticket
tranzly-open-support-ticket
提交支持工单
使用此网站的诊断信息提交支持工单(主题、消息、类型、电子邮件);access_days 和 credentials 可选地授予我们团队临时访问权限。
免费版POST …/abilities/tranzly/open-support-ticket/runmanage_options (the REST route's own check)无
tranzly/retry-job-item
tranzly-retry-job-item
重试或转接失败的项目
重试失败的项目(操作:retry,可选使用其他引擎)或将其标记为人工翻译(操作:by-hand)。
免费版POST …/abilities/tranzly/retry-job-item/runedit_post and manage_options (the REST route's own check)item: string (必填), action: string (必填), engine: string
tranzly/review-translation
tranzly-review-translation
批准或拒绝翻译 (Pro)
批准翻译(并在原文发布时将其发布)或将其退回(决定、备注)。
专业版POST …/abilities/tranzly/review-translation/runedit_post (the REST route's own check)id: string (必填), decision: approve|changes|pending (必填), note: string
tranzly/revoke-support-access
tranzly-revoke-support-access
撤销临时技术支持登录权限
立即移除临时支持用户 (ids)。
免费版POST …/abilities/tranzly/revoke-support-access/runmanage_options (the REST route's own check)ids: array (必填)
tranzly/run-legacy-import
tranzly-run-legacy-import
导入 Tranzly 2.x 翻译
运行 2.x 导入:预演(仅报告)、运行或撤销。
免费版POST …/abilities/tranzly/run-legacy-import/runmanage_options (the REST route's own check)action: string (必填)
tranzly/scan-theme-strings
tranzly-scan-theme-strings
扫描主题或插件中的文本 (Pro)
扫描组件 PHP 文件的下一页以查找可翻译文本(重复此操作直至完成)。
专业版POST …/abilities/tranzly/scan-theme-strings/runmanage_options (the REST route's own check)component: string (必填), after: integer
tranzly/schedule-quality-check
tranzly-schedule-quality-check
使用 AI 检查翻译 (Pro)
安排对某语言翻译的下一页(或指定文章)进行 AI 质量检查。
专业版POST …/abilities/tranzly/schedule-quality-check/runedit_posts (the REST route's own check)lang: string (必填), post_type: string, posts: array, after: integer
tranzly/seo-audit
tranzly-seo-audit
多语言 SEO 审计 (Pro)
检查翻译中是否缺少指定语言的 SEO 标题、描述、别名和 hreflang,逐页进行。
专业版GET …/abilities/tranzly/seo-audit/runmanage_options (the REST route's own check)lang: string (必填), after: integer
tranzly/set-comments-setting
tranzly-set-comments-setting
更改评论处理 (Pro)
在帖子的不同语言版本之间共享评论,或针对每种语言单独保留评论(模式)。
专业版POST …/abilities/tranzly/set-comments-setting/runmanage_options and moderate_comments (the REST route's own check)mode: off|show|translate (必填)
tranzly/set-engine-key
tranzly-set-engine-key
保存引擎密钥
保存 DeepL、Google 或 Microsoft 的 API 密钥(以及 Microsoft 的区域);留空则表示删除。密钥采用加密方式存储,且绝不会返回。
免费版POST …/abilities/tranzly/set-engine-key/runmanage_options (the REST route's own check)engine: string (必填), key: string (必填), region: string
tranzly/set-menus
tranzly-set-menus
按语言设置菜单
为每种语言的每个位置(地图)分配一个菜单。
免费版POST …/abilities/tranzly/set-menus/runedit_theme_options (the REST route's own check)map: object (必填)
tranzly/set-protection
tranzly-set-protection
保护或解锁翻译
保护翻译不被引擎覆盖(protected: true),或将其解锁。
免费版POST …/abilities/tranzly/set-protection/runedit_post (the REST route's own check)id: string (必填), protected: boolean (必填)
tranzly/set-shared-strings
tranzly-set-shared-strings
纠正主题和插件文本
保存主题和插件文本(字符串)的已更正翻译;它们将受到保护。
免费版POST …/abilities/tranzly/set-shared-strings/runedit_theme_options (the REST route's own check)lang: string (必填), scope: menus|site|templates|gettext.theme-twentytwentyfive|gettext.plugin-page-builder-sandwich|gettext.plugin-tranzly, strings: object (必填)
tranzly/set-site-string
tranzly-set-site-string
翻译网站文本
保存某种语言的一个站点文本(键),例如站点标题或标语。
免费版POST …/abilities/tranzly/set-site-string/runedit_theme_options and manage_options (the REST route's own check)lang: string (必填), key: string (必填), translation: string (必填)
tranzly/set-urls
tranzly-set-urls
更改地址设置
设置地址模式(mode)、多语言域名、翻译的基础路径与片段、noindex_untranslated 和 slug 建议。
免费版POST …/abilities/tranzly/set-urls/runmanage_options (the REST route's own check)mode: string, segments: object, domains: object, bases: object, suggest: boolean, noindex_untranslated: boolean
tranzly/start-trial
tranzly-start-trial
开始免费 Pro 试用
为此网站开启 14 天 Tranzly Pro 试用(无需付款)。
免费版POST …/abilities/tranzly/start-trial/runmanage_options (the REST route's own check)无
tranzly/translate-media-field
tranzly-translate-media-field
翻译图像中的文字
保存图像的替代文本、标题或说明(字段)到指定的语言(lang)中。
免费版POST …/abilities/tranzly/translate-media-field/runedit_post (the REST route's own check)id: string (必填), lang: string (必填), field: alt|caption|title (必填), translation: string (必填)
tranzly/translate-post
tranzly-translate-post
翻译文章或页面
使用翻译引擎将一篇发布或页面翻译成网站的一种或多种语言,以创建或更新每项翻译。新翻译默认为草稿,除非 publish 为 true。人工编辑过的翻译将被跳过,除非 force 为 true。
免费版POST …/abilities/tranzly/translate-post/runmay translate that post (edit_post on it); edit_post on an existing translation; the type's publish capability to publishid: integer (必填), languages: array (必填), engine: string, publish: boolean, force: boolean
tranzly/translate-shared-strings
tranzly-translate-shared-strings
翻译缺失的主题和插件文本
使用默认引擎翻译语言中下一页未翻译的主题和插件文本(重复此操作直至完成)。
免费版POST …/abilities/tranzly/translate-shared-strings/runedit_theme_options (the REST route's own check)lang: string (必填), scope: menus|site|templates|gettext.theme-twentytwentyfive|gettext.plugin-page-builder-sandwich|gettext.plugin-tranzly, after: integer
tranzly/translate-site
tranzly-translate-site
翻译我的网站
引导式工作流:代理会检查语言和引擎、预估费用并翻译缺失的内容,在消费或发布之前会先征求您的同意。
免费版POST …/abilities/tranzly/translate-site/runedit_postslanguages: string (必填)
tranzly/translate-term
tranzly-translate-term
翻译分类或标签
使用引擎将一个术语(分类、标签或产品属性)翻译成某种语言 (lang),以创建或更新其翻译。
免费版POST …/abilities/tranzly/translate-term/runthe REST route's own per-item permission checkid: string (必填), lang: string (必填), engine: string, force: boolean, status: publish|draft
tranzly/translation-status
tranzly-translation-status
翻译状态
若提供文章 ID:该文章各语言版本的翻译、其是否已过时以及作者是谁。若未提供:按语言划分的网站翻译进度。
免费版GET …/abilities/tranzly/translation-status/runedit_post on that post; edit_posts for the site summaryid: integer, post_type: string
tranzly/unlink-post
tranzly-unlink-post
取消文章与翻译的关联
将文章移出其翻译组;它将保留其当前的语言。
免费版POST …/abilities/tranzly/unlink-post/runedit_post and edit_term (the REST route's own check)id: string (必填)
tranzly/update-display
tranzly-update-display
更改显示选项
更改切换器(样式、国旗、名称、位置)和版权行。
免费版POST …/abilities/tranzly/update-display/runmanage_options (the REST route's own check)switcher: object, credit: boolean
tranzly/update-engine-settings
tranzly-update-engine-settings
更改引擎设置
设置默认引擎、备用引擎和各语言引擎(default、fallback、per_lang)。各语言引擎和备用引擎功能仅限 Pro 版使用。
免费版POST …/abilities/tranzly/update-engine-settings/runmanage_options (the REST route's own check)无
tranzly/update-glossary
tranzly-update-glossary
更新词汇表
替换您发送的词汇表部分(从未翻译的单词、术语翻译、语调);未提及的部分将保留。从下一次翻译开始,所有引擎都将使用此设置。
专业版POST …/abilities/tranzly/update-glossary/runmanage_optionsdnt: array, terms: object, tone: object
tranzly/update-settings
tranzly-update-settings
更改语言和设置
设置网站的语言(languages:包含代码和名称的列表;第一个为原始语言)、前端类前缀,以及是否允许 AI 代理(MCP)。
免费版POST …/abilities/tranzly/update-settings/runmanage_options (the REST route's own check)prefix: string, mcp: boolean, languages: array
tranzly/update-workflow-settings
tranzly-update-workflow-settings
更改工作流设置 (Pro)
设置 on_update(off、stale、translate)、on_publish、review、quality_threshold、quality_provider 和 quality_model。
专业版POST …/abilities/tranzly/update-workflow-settings/runmanage_options (the REST route's own check)无
tranzly/upload-translation-file
tranzly-upload-translation-file
导入翻译好的文件 (Pro)
上传在其他地方翻译的 Tranzly XLIFF 或 CSV 文件(内容、文件名);返回 tranzly/import-translation-file 的令牌。
专业版POST …/abilities/tranzly/upload-translation-file/runedit_posts (the REST route's own check)无