Locus Web Search
router_web_searchSearch the live web and return a ranked, deduplicated list of sources (title, URL, snippet) merged from several search providers; no language model summarizes on this path. Use when you need links to cite or read next; use router/web-research for a synthesized answer and router/web-extract to read URLs. Billed per fulfilled provider call; mode fast, balanced, or comprehensive sets provider breadth and cost, and maxCredits caps the total. rails and strategy are legacy fields; prefer mode. Usually costs ~10.1 credits per call. The result reports credits charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | balanced | |
| query | Yes | Search or research request. | |
| rails | No | Legacy access-path field retained for compatible clients. | |
| topic | No | general | |
| _locus | No | Optional Locus execution controls; provider arguments remain top-level. | |
| country | No | ||
| strategy | No | Legacy mode selector retained for compatible clients. | |
| providers | No | ||
| maxCredits | No | Aggregate hard charge ceiling in workspace credits. Decimal strings support up to six fractional digits; numeric values are rounded down to six digits. | |
| maxResults | No | ||
| attribution | No | Optional JSON ledger metadata such as a task or customer identifier. | |
| recencyDays | No | ||
| maxProviders | No | ||
| includeImages | No | ||
| excludeDomains | No | ||
| externalUserId | No | Optional end-user billing attribution for a tenant secret key. | |
| includeDomains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw provider response. | |
| usd_charged | No | USD charged (secret-key auth only). | |
| credits_balance | No | ||
| credits_charged | No | ||
| idempotent_replay | No | Stored replay; no new charge. |