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.
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 |