Web Search & Fetch

Stravia's Web search page (/web-search) lets you configure platform-managed search and page fetching for MCP tools and keys with web_search transparent injection.

Web search settings page in Stravia WebUI

Prerequisites

  • For External Route mode (recommended in Community Edition): At least one enabled Model Route with Purpose: Web Search (web_search) backed by a search-capable vendor (such as DeepSeek native web search, OpenAI Codex hosted search, or Antigravity).
  • For Stravia model (Local) mode: At least one enabled inference Model Route capable of tool calling, and a deployment that registers at least one Web Provider extension via GatewayBuilder::web_provider_factory (discovered dynamically through GET /api/v1/web-provider-kinds). The default Community Edition build does not bundle built-in Web Provider extensions or a local Chromium runtime.
Default editor state

When opening Web search for the first time, the UI pre-selects External Route, while the server starts with Web Search disabled until you pick a valid route or Web Provider configuration and save.

Steps

  1. Choose a Web Search backend

    Open Advanced Features → Web search:

    • External Route: Select a web_search-purpose route. The upstream vendor performs search and returns citations that Stravia validates against domain rules and public DNS/URL checks. Each external call runs independently (no multi-turn continuation; max_turns and total_time_seconds do not apply).
    • Use a Stravia model (Local): Select an inference model route and configure Max turns (default 12, range 1–20) and Total time budget (default 600s, range 10–600s). Stravia orchestrates search and page-fetch turns across registered Web Access provider extensions and supports search continuation.
  2. Configure Web Access providers (when extensions are installed)

    If your deployment registers Web Provider extensions, use the Web Access section on /web-search to add services, order search and page sources, and choose Proxy (proxy_mode: Use system proxy by default, No proxy, or a named proxy from Settings → Network → Proxy; legacy per-proxy bypass rules were removed in v0.7.8).

    In default v0.7.8 builds without Web Provider extensions, the section shows No Web Provider extensions available—switch the search method to External Route. If you upgraded from v0.7.5 or earlier, migration 0058_generalize_web_providers.sql removes the retired built-in web-provider-local seed and web_access_browser_path setting while keeping existing non-local rows visible as Not installed so you can inspect or delete them; migration 0060_proxy_list_and_selection.sql migrates use_proxy booleans on any retained rows into proxy_mode.

  3. Enable and authorize API keys

    Save the binding, turn Web Search Enabled, and authorize specific API keys via mcp_access_enabled or transparent_injections: ["web_search"]. You can restrict domains per call via StraviaRead.body.allowed_domains (up to 20 items).

Verify

Call the gateway using an authorized API key (or StraviaSearch via /mcp) with a query about a recent public topic, and check Monitor → Request history for completed search tool calls and verified public source URLs.

Troubleshooting

  • No Web Provider extensions available / providers shown as Not installed: Core builds removed the bundled LocalWeb Chromium runtime and hardcoded local/exa/zhipu adapters in v0.7.6. Switch Search method to External Route with a web_search route (DeepSeek, Codex, or Antigravity), or deploy a build that injects Web Provider extensions, and delete any retired unregistered rows.
  • External Route option cannot be enabled: Create a Model Route with Purpose: Web Search first (inference routes are excluded from the External Route dropdown).

Next