Repository navigation
Tools Reference
Home · Installation · Compatibility · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Self-Hosting · Monitor · Testing · Troubleshooting · Project Tracker
The server exposes exactly four tools. Only concepts that map cleanly across every provider appear in the public schema; provider-specific options stay inside the adapters.
Search the public web and return ranked, deduplicated results with provenance.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
query |
string | yes | — | Natural language or keywords |
max_results |
integer | no | 8 | 1–20; clamped rather than rejected |
recency |
enum | no | any |
any, day, week, month, year
|
include_domains |
string[] | no | — | At most 20 |
exclude_domains |
string[] | no | — | At most 20 |
locale |
string | no | — | e.g. en-US, de-DE
|
provider |
enum | no | auto |
Force one provider |
mode |
enum | no | balanced |
fast, balanced, thorough
|
Optional arguments are expressed as nullable types. Every declared property also appears in
required, because strict consumers such as OpenAI require that; an optional field is written as["string", "null"]and simply omitted by clients that are not strict. Defaults are documented in each description rather than declared with adefaultkeyword, which strict consumers reject. See Compatibility.
provider accepts auto plus every selectable adapter id: tavily, brave,
mojeek, exa, searxng, open_web_search, duckduckgo, startpage, parallel.
An explicitly requested provider is never silently substituted. If it is not configured, the call fails with an error naming it. Drop the argument to allow automatic selection.
Domain filters are enforced twice: they are passed to the provider where supported, and re-checked locally, so a provider that ignores a filter cannot leak excluded results.
| Mode | Provider fan-out | Whole-search budget |
|---|---|---|
fast |
one provider | 12 s |
balanced |
up to two independent providers, fused | 15 s |
thorough |
up to three, fused; an unattempted aggregator may be added if the result set is thin | 20 s |
Selection prefers independent crawler indexes, then other direct providers, then aggregators, then opt-in scrapers.
Every result carries both a compact text rendering and structured content.
{
"query": "swift 6.3 concurrency",
"results": [
{
"rank": 1,
"title": "Concurrency | Swift Documentation",
"url": "https://swift.org/documentation/concurrency/",
"snippet": "Swift concurrency documentation.",
"published_at": null,
"sources": ["tavily", "brave"]
}
],
"providers_used": ["tavily", "brave"],
"providers_failed": [],
"warnings": [],
"retrieved_at": "2026-09-11T19:00:00.000Z",
"elapsed_ms": 412,
"served_from_cache": false
}| Field | Meaning |
|---|---|
results[].rank |
Position in the fused order |
results[].sources |
Every provider that returned this URL, best-ranked first |
providers_used |
Providers that contributed at least one result |
providers_failed |
{provider, category, message} for each provider that failed |
warnings |
Human-readable notes, including provider answers and thin-coverage hints |
served_from_cache |
True when answered from the local cache |
Text form:
[1] Concurrency | Swift Documentation
URL: https://swift.org/documentation/concurrency/
Snippet: Swift concurrency documentation.
Sources: tavily, brave
A search returns isError: false whenever at least one provider produced a usable
result. Failed providers are listed in providers_failed and summarised in warnings.
Only a total failure — or an invalid request — is an error.
Fetch one public URL and return readable text.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
url |
string | yes | — | Absolute http/https only |
max_characters |
integer | no | 12000 | 1000–50000 |
- Native
URLSessionfetch, then SwiftSoup extraction that removes scripts, styles, navigation, footers and boilerplate, preferring<main>/<article>. - If native extraction yields under 400 characters, or the fetch fails for a non-policy reason, the Jina Reader fallback renders the page remotely.
- If both fail, the original fetch error is reported — not a generic message.
There is no JavaScript execution. Extraction sees the server-rendered HTML, and the Jina Reader fallback renders remotely, but a page whose content appears only after client-side scripting will yield little or nothing. This is a deliberate boundary, not a gap: running a browser here would mean executing untrusted script inside the server.
The response records final_url (after redirects), status, content_type, title,
extraction_method (raw_text, html_extraction, jina_reader), truncated,
text_characters and warnings.
The readable text appears once, in the text content block; structuredContent
carries the metadata and reports its length through text_characters. Duplicating it
would roughly double the payload and push a large fetch towards the per-result ceilings
some hosts enforce.
web_open is an SSRF boundary: the URL comes from a model. Only public http/https
addresses are fetchable, with lexical, DNS-resolution and per-redirect-hop validation.
See Security.
Search, then answer the question in prose using only the results that were fetched.
Opt-in: requires DEEPSEEK_API_KEY. Without it the tool still works and returns the
search results, with a status of results_only and a note naming the missing variable.
Identical to web_search — query (required), max_results, recency,
include_domains, exclude_domains, locale, provider, mode.
The schema deliberately exposes no model-selection, prompt, temperature or token argument. This is a grounded search tool, not an LLM passthrough, and a test asserts those properties stay absent.
The answering model has no web access. That is the reason for the design, not a limitation worked around:
- Unaided, asked for the newest macOS, it answered "macOS Tahoe 26, version 26.4.1" while the machine actually ran 26.6.2 — a confident answer from a stale training snapshot. A search provider that returned that would be a hallucination engine.
- Given the fetched results and instructed to use nothing else, its failure mode becomes
abstention. On the reference query "why unix failed the top 500 list" it replied
INSUFFICIENT:— the results established that Linux dominates, but never explained why Unix declined. A model answering from memory would have invented the explanation.
Grounding is enforced, not merely requested:
| Rule | Enforcement |
|---|---|
| Cite only supplied results | Markers are range-checked; out-of-range markers are removed from the text and the removal is disclosed in the answer |
| Return only what was used |
citations contains just the cited results, renumbered to be contiguous, so [n] always resolves |
| Never invent URLs | No URL is accepted from the model; every citation URL comes from the fetched result |
| Never show thinking as the answer |
reasoning_content is decoded separately and never treated as content
|
| Refusal is not content | A refusal is returned as status: "insufficient", not as an answer |
| A synthesis failure is not a search failure | The results are still returned, with the reason in warnings
|
Structured content:
| Field | Notes |
|---|---|
query |
Echoed |
status |
answered, insufficient, or results_only
|
model |
e.g. deepseek-flash; null when no synthesis ran |
citations |
index, title, url, sources — only what the answer cited |
answer_characters |
Length of the prose, which lives in the text block |
results_considered |
How many results the model was shown |
providers_used / providers_failed
|
Search provenance, as for web_search
|
warnings |
Includes any synthesis failure, and provider-supplied answers |
elapsed_ms |
Whole call |
synthesis_ms |
Generation step alone; null when it did not run |
served_from_cache |
Whether the search half was cached |
The text block carries the answer first, then the cited sources, so a client that only surfaces text still gets resolvable references.
Generation is a separate traffic class from search, with its own budget
(SEARCH_SYNTHESIS_TIMEOUT_MS, default 45 s) rather than the search timeout.
Measured against deepseek-flash: ~2 s to synthesize, ~7 s for a whole
balanced call including the search, and roughly $0.0003 per answer — about three
thousand answers per dollar. The search itself is unchanged and still spends provider
quota as usual.
Thinking mode is off by default. With it on, the reasoning pass shares the output-token budget and can consume all of it, returning
finish_reason: lengthwith empty content — an HTTP 200 carrying no answer. Measured:completion=4000, reasoning=4000, content="". An empty completion is retried once with thinking explicitly disabled.
Diagnostics for operators. Takes no arguments.
Reports per provider: status (ready, not_configured, disabled, circuit_open,
probing, rate_limited), configured, source_family, is_aggregator,
is_experimental_scraper, circuit state, request/success/failure counters, average
latency, last error with category, and an actionable note explaining why an inactive
provider is inactive. It also reports cache statistics and the resolved provider order.
It never exposes key material.
Failures are returned as tool results with isError: true and a message written for a
human to act on. Stable categories:
| Category | Meaning | Transient |
|---|---|---|
not_configured |
No credentials or endpoint | no |
authentication |
Credentials rejected | no |
rate_limited |
Provider or local limiter | yes |
timeout |
Exceeded its budget | yes |
network |
Connection-level failure | yes |
server_error |
Upstream 5xx | yes |
malformed_response |
Body could not be parsed | no |
unsupported_request |
Provider cannot serve the request | no |
circuit_open |
Skipped after repeated failures | no |
Only transient categories count toward a provider's circuit breaker, so a bad key never hides behind an open breaker.
Discover the current schema from the server rather than trusting a document:
{"jsonrpc":"2.0","id":2,"method":"tools/list"}{"jsonrpc":"2.0","id":3,"method":"tools/call",
"params":{"name":"web_search",
"arguments":{"query":"swift concurrency","mode":"thorough","max_results":5}}}{"jsonrpc":"2.0","id":4,"method":"tools/call",
"params":{"name":"web_open",
"arguments":{"url":"https://swift.org/documentation/concurrency/"}}}{"jsonrpc":"2.0","id":5,"method":"tools/call",
"params":{"name":"web_answer",
"arguments":{"query":"why unix failed the top 500 list","mode":"balanced"}}}A representative web_answer result — note that it abstains rather than inventing the
explanation the results do not contain. Markers are renumbered to be contiguous from the
sources the model actually used, so a gap in the numbering here is expected:
INSUFFICIENT — the search results do not answer this question.
The results do not state that Unix failed the TOP500 list. They mention a Linux
operating system family statistics page on TOP500 [1] and general reasons Linux
succeeded while other UNIX clones failed [3], but nothing addresses Unix failing
the TOP500 list.
Sources:
[1] Operating system Family / Linux | TOP500
https://www.top500.org/statistics/details/osfam/1/
[3] Why was Linux able to succeed while all the other UNIX clones failed? - Quora
https://www.quora.com/Why-was-Linux-able-to-succeed-while-all-the-other-UNIX-clones-failed
Asked for something the results do answer, it answers — and this is the case that unassisted generation gets wrong, because the prices are live:
The results report different Bitcoin prices in USD: $77,213.88 [1], $77,879.95 [2],
$78,154.00 [3], ...
Sources:
[1] Bitcoin BTC (BTC-USD) Live Price, News, Chart & Price History - Yahoo Finance
https://finance.yahoo.com/quote/BTC-USD/
- Providers — which backend serves your query
- Reliability — how partial failure is handled
- Troubleshooting — when a call returns nothing