Zerø Lingua
v0.6.0Translate, tune brand voice & glossary, and review multilingual WordPress sites with Zerø Lingua.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
site_status Site translation status
The site's translation shape: the source language and every target language with its `live` flag (an offline language redirects visitors to the source until it goes live). Call this first — every other tool needs a valid target language `code` from here. Typical session: site_status (languages) → get_settings (writing style, tone and glossary) → pending_overview / list_items / item_strings (read untranslated or draft strings) → translate the text directly yourself and call save_translations (the default way to translate) → optionally approve_item (one page) or approve_set (a set or s…
pending_overview Pending work overview
Per-language progress across the site: string counts (total / translated / approved) and item counts by status (`translated`, `needs_review` = translated but not signed off, `partial`, `untranslated`). Each language also carries `words`: the same items counted in the panel's vocabulary — `translated`, `needs_review`, `in_progress`, `not_translated` — which are the words a selector's `status` takes in translate_set and approve_set. An item with nothing to translate in a language (only locked texts, figures with a unit or machine values, or a language it does not exist in) is counted in `ite…
list_items List translatable items
One content type's items with per-language status. `type` is `page`, `wp_template` (templates), `wp_block` (components), `terms`, `menus`, `forms`, `json-loops`, `strings` (the pool of site-wide strings no other item holds), or any public post-type slug (`post`, custom types). Paginate with offset/limit; `search` filters by text. Each item carries `id` and `kind` — pass those to item_strings, or as a selector's `targets`. The same `type` words are a selector's `scope.type`; for `strings` the answer also lists the pool's `kinds`, for `terms` its `taxonomies` — the values a selector's `kinds…
| Parameter | Type | Description |
|---|---|---|
type * | string | page | wp_template | wp_block | terms | menus | forms | json-loops | strings | a public post-type slug |
kinds | string | comma-separated kind keys when type is "strings" |
limit | integer | default 30, max 100 |
offset | integer | |
search | string | text filter |
taxonomies | string | comma-separated taxonomy slugs when type is "terms" |
item_strings Read an item's strings
An item's translatable strings: each with its stable `hash`, the `source` text, existing `translations` per language, and review `meta` (draft vs approved, human vs AI origin). `kind` is `post`/`component`, `term`, `menu` or `form` (numeric id), `loop` (the loop's key), or `string` (there the id IS the hash). Pass `lang` to return only that language's translations and `meta`, `status` (`untranslated` | `draft` | `needs_review` | `pending` | `all`, requires `lang`) to read only what still needs work, and `offset`/`limit` (max 200) to paginate large items (`total` and `has_more` report the full…
| Parameter | Type | Description |
|---|---|---|
id * | string | post/component/term/menu/form ID, loop key, or the string hash itself |
kind | string | default post |
lang | string | narrow translations and meta to one target language code |
limit | integer | page size (max 200); omit to return all |
offset | integer | pagination offset over the filtered strings |
status | string | filter strings in `lang` (requires `lang`): untranslated, draft/needs_review, or pending (both) |
save_translations Save translations you produced
DEFAULT way to translate: write translations YOU produced directly, following the site brief, tone and glossary from get_settings. Do not call translate_set unless the user explicitly asks to use the site's own AI engine. Every entry must carry a `hash` from item_strings — source-only entries are rejected on this surface. Placeholder tokens wrapped in ⟦ ⟧ must be preserved in the translation EXACTLY as they appear in the source, or that entry is skipped. One translation serves every value a token takes: when the value changes the word before it (Catalan de → d', French le → l'), rewr…
| Parameter | Type | Description |
|---|---|---|
entries * | array | |
lang | string | default target language for entries that omit lang |
approve_item Approve a post + language
The review gate's sign-off for ONE post in ONE language — the right tool for «approve this page»: its draft translations start serving publicly (once the language is live — see site_status). Requires publish rights on that post. It approves the post's own drafts; to approve the drafts of the posts its loops show too (its rows' `loops`), use approve_set with `scope.document`. The answer carries `approved` (rows signed off), `items[]` (the repainted rows) and `refused[]`: what was NOT approved, by identity — `{id, kind: "string", lang, reason, message, in}` with `reason` `approve_tier` (…
| Parameter | Type | Description |
|---|---|---|
lang * | string | target language code |
post_id * | integer | the post whose drafts to approve |
translate_set Translate a set with the site's AI engine
SECONDARY tool: ONLY call this when the user explicitly asks to translate with the SITE'S OWN configured AI engine or background queue (which spends the site's API key and monthly budget). By default, read strings with item_strings, translate them directly yourself and call save_translations instead. When using the site's AI engine, you describe the set in `selector`; the SERVER resolves it, splits it and checks your rights per unit, so never list or split the items yourself. (1) Call with `dry_run: true` FIRST and tell the user the number: `strings` (string × language cells that would be pai…
| Parameter | Type | Description |
|---|---|---|
selector * | object | the set: `scope` or `targets`, plus `langs` and optional filters |
cursor | string | the `cursor` of the previous answer of this run; send it with the SAME selector |
dry_run | boolean | true = count and report only, write nothing. Always send it first. |
force | boolean | re-translate strings that already have a translation, never the locked or human-written ones; in request mode, except a whole `scope.type` |
approve_set Approve a set
The review gate's sign-off for a SET — many pages, terms, menus or strings, in one or more languages; approved text serves publicly once its language is live (site_status). For one post in one language approve_item is simpler; `scope.document` also approves the drafts of the posts its loops show, each under its own rights. Describe the set in `selector` (the usual filter is `status: ["needs_review"]`); the SERVER resolves it and checks your rights per unit and per string. (1) Call with `dry_run: true` FIRST and tell the user the number: `units`, `cells` (unit × language), `actionable` (draf…
| Parameter | Type | Description |
|---|---|---|
selector * | object | the set: `scope` or `targets`, plus `langs` and optional filters |
cursor | string | the `cursor` of the previous answer of this run; send it with the SAME selector |
dry_run | boolean | true = count and report only, write nothing. Always send it first. |
queue_status Follow queued translation work
Follow the jobs translate_set returns when it answers `mode: "queue"`. With `id` (a `jobs[].id`): `state` is `queued` (still in the queue; `job`: {id, lang, slice, sent, cap, exhausted}, `sent` = strings sent so far), `finished` (`finished`: {at, sent, capped}; `capped: true` = it stopped at the site's per-action ceiling), or `unknown` — neither in the queue nor among the last 20 finished jobs. `unknown` cannot tell a job that never existed from one that was cleared or one that finished long ago: it is neither success nor failure, so read the result in pending_overview or list_items. Without…
| Parameter | Type | Description |
|---|---|---|
id | string | a job id from translate_set `jobs[].id`; omit to list the live jobs |
keep_original Keep a text in its original
Mark a SET of texts as needing no translation (a brand, a wine, a product name): every language then serves the original as written, no count shows them as pending, and neither the AI nor an import translates them. The mark belongs to the text, not to a language: `langs` only has to be valid. `locked: false` takes it off, and the text is translated again. item_strings says `locked` for a marked text. Use it instead of saving a translation identical to the source. (1) Call with `dry_run: true` FIRST and tell the user `strings` (texts whose mark would change) and `refused[]`. (2) Call with the S…
| Parameter | Type | Description |
|---|---|---|
selector * | object | the set: `scope` or `targets`, plus `langs` and optional filters |
cursor | string | the `cursor` of the previous answer of this run; send it with the SAME selector |
dry_run | boolean | true = count and report only, write nothing. Always send it first. |
locked | boolean | default true; false takes the mark off |
get_settings Read the writing style and settings
How this site wants its translations written. Every translator reads the writing style: `ai.context` (the site brief sent with every AI translation), `ai.formality`, each language's `formality` and `tone` in `languages[]` (an empty `formality` inherits `ai.formality`) and the `glossary` (`keep`: terms never translated; `terms`: a preferred translation per language). The answer depends on your role, so read `tier`: `translator` gets only that style; `admin` also gets every other setting an agent may read (languages, URLs, switcher, content, the AI engine without its keys, automation), `writable…
| Parameter | Type | Description |
|---|---|---|
only | array | admin: the groups to return, such as ["ai","languages","glossary"]; omit for all |
sample | boolean | admin: add up to 12 recent texts of the site, to read its voice |
update_settings Adjust the writing style
Adjust how the site's AI engine and its agents write FUTURE translations: the site brief, the formality, the tone of each language and the glossary. Existing translations stay as they are; to redo them, use translate_set. Administrators only; through Remote MCP the connection also needs the `zl:configure` permission. `patch` is a merge patch in the shape get_settings reads: {"ai": {"context": "...", "formality": "formal"}, "languages": {"es": {"formality": "informal", "tone": "..."}}, "glossary": {"keep": {"Brand": true}, "terms": {"Read more": {"es": "Leer más"}}}}. In the glossary `null` de…
| Parameter | Type | Description |
|---|---|---|
patch * | object | only the settings to change |
dry_run | boolean | true = say what would change and write nothing |