List, set, move or remove search engines
browser_search_engineList, set the default, reorder, remove, or reset Firefox search engines to control browser search behavior during automation.
Instructions
Manage Firefox search engines. MEASURED, and this is the whole trick: the SearchService is NOT reachable via resource:// in this build — it lives under the moz-src protocol, so the module id is "moz-src:///toolkit/components/search/SearchService.sys.mjs" and it exports SearchService (a singleton). That object exposes getEngines/setDefault/setDefaultPrivate/moveEngine/removeEngine/restoreDefaultEngines and the add* family (addEngineFromExtension / addOpenSearchEngine / addUserEngine). Older guidance that the service is unreachable was wrong.
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_search_engine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Engine name, for set-default / move / remove | |
| action | Yes | What to do | |
| position | No | 1-based position for move |