Languages (BM, English, ...)
site_languagesMake the site bilingual (e.g. English and Bahasa Melayu; also Chinese or Tamil) and see which pages still need translating (on React sites: which texts, kept in src/i18n/.json). Set main and also once; then translate each page with write_page at the path listed (e.g. "ms/menu.html", served at /ms/menu). The server adds the lang attribute, hreflang tags for Google and a language switch, sends /ms/... to the original page until it is translated, and marks a translation outdated when its original changes. Call without changes to see the status. Use the languages in the brief (save_brief languages) when the owner wants more than one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>"
},
"name": "site_languages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| also | No | Other languages, each in its own folder; [] makes the site single-language again | |
| main | No | The main language (pages at the root): en, ms (Bahasa Melayu), zh, ta | |
| site | Yes | Site slug (e.g. "kopitiam-muar") or id |