Name Description Size Coverage
moz.build 359 -
SearchProviders.sys.mjs Search providers for the web search flow. 8735 -
SearchWorkflow.sys.mjs Self-contained flow backing the search_the_web tool. Three paths: - Answers (SEARCH_THE_WEB_ANSWERS_PREF on and no custom endpoint, checked first): one call to Exa's /answers service, which does the retrieval and the writing itself and returns the answer plus the sources it cited. - Grounded (both prefs off, the default): one Exa retrieval, an on-demand page-read loop (bounded), grounded answer generation on a pinned model, and a non-LLM schema validation. - Fast (SEARCH_THE_WEB_FAST_PREF on): one Exa retrieval whose sanitized snippets go straight back to the main assistant, which answers from them or reads a page itself. Whichever runs, the main assistant uses the result to decide whether to answer in chat or fall back to a Google handoff. The paths are deliberately kept as separate entrypoints so that whichever ones lose can be deleted whole. All the logic lives here as functions — there is no separate agent object because there is no state to carry between calls. 38692 -