Report or toggle Firefox full-page translation
browser_translationsReports and controls full-page translation state: check status, enable or disable the feature, list supported language pairs, and download language models.
Instructions
Report the full-page translation state and optionally enable the feature. MEASURED: the pref is browser.translations.enable (false by default in this build); the actor resource://gre/actors/TranslationsParent.sys.mjs exposes getIsTranslationsEngineSupported / getWebContentLanguages / isTranslationsEngineMocked. With a real engine the supported-language map is populated only after language packs are downloaded, so an empty map while isEngineSupported is true means "engine present, packs absent" rather than a broken feature.
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": {
"action": "<action>"
},
"name": "browser_translations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | status/enable/disable = pref; pairs = supported language pairs; download = fetch model files | |
| source | No | Source language for download (default en) | |
| target | No | Target language for download (default zh-Hans) |