Module searchers — web search and page fetch
🟢 The module gives agents access to web search through a provider (default auto: FireCrawl when its key is configured, otherwise DeepSeek Search) and to page fetching as Markdown through the DeepSeek Fetch API. It ships a ready-made demo agent. The module is dual-transport: the same code works as a linked crate and as a native DLL.
What it ships
| What | Identifier | Description |
|---|---|---|
| Tool | kind: web_search |
internet search: title, url, description |
| Tool | kind: web_fetch |
fetch a page by URL: title, content (Markdown) |
| Agent | searchers-demo |
demo agent with web_search and web_fetch |
| Providers | 9 search backends | see the table below |
| Settings | searchers/* |
provider keys (secrets), projected into env |
The module is part of the default set (server.yaml → modules.enabled or
config/modules.enabled). The core registers its engines web_search and
web_fetch in the tool factory, so YAML tools with those kinds become
available automatically.
Providers
provider |
Type | Key (env) | Default base |
|---|---|---|---|
firecrawl |
search+scrape | FIRECRAWL_API_KEY |
https://api.firecrawl.dev |
tavily |
search | TAVILY_API_KEY |
https://api.tavily.com |
brave |
search | BRAVE_API_KEY |
https://api.search.brave.com |
serper |
Google SERP | SERPER_API_KEY |
https://google.serper.dev |
serpapi |
Google SERP | SERPAPI_API_KEY |
https://serpapi.com |
exa |
semantic | EXA_API_KEY |
https://api.exa.ai |
google |
Google CSE | GOOGLE_API_KEY + cx |
https://www.googleapis.com |
deepseek |
DeepSeek Search | DEEPSEEK_API_KEY |
https://api.deepseek.com |
searxng |
self-hosted, no key | — (base_url required) |
your installation |
All providers normalize the response into { title, url, description }.
DeepSeek additionally returns summary, content, site_name, site_icon,
date, authority and rerank_score. base_url can be overridden
(self-hosted/proxy). The provider can also be selected per call: the provider
parameter in the tool arguments overrides the config.
Provider order comes from providers: (default firecrawl → deepseek). On an
exhausted quota/rate limit (402/429), auth/policy failure (401/403),
5xx/network/timeout, or a missing key, search automatically moves to the next
provider; HTTP 400 is not retried. After a successful fallback the result
carries an attempts array with the earlier errors.
web_search — call parameters (set by the LLM)
query(required) — the search query (1–128 characters).limit(1–50, default 5) — how many results to return.provider(defaultauto: FireCrawl when configured, otherwise DeepSeek) — one of the list above.need_content(DeepSeek) — fillcontentwith page content.ori_question(DeepSeek) — the user's original question.localization(DeepSeek) — IP address used to localize results.
The result is JSON:
{ "provider": "firecrawl", "query": "…", "count": 3,
"results": [ { "title": "…", "url": "https://…", "description": "…" } ] }
web_fetch — call parameters
url(required) — an HTTP/HTTPS URL, up to 8192 characters, no credentials.max_chars(optional) — cap the returnedcontentlength (0 = no cap).
Result: { provider, url, title, content }, where content is Markdown.
When truncated, "truncated": true is added. API errors (403/404/429/5xx)
surface as tool errors carrying error.message.
Tool config
# tools/web_search.yaml
kind: web_search
name: web_search
description: Search the web (title, url, snippet).
# provider: auto # auto: FireCrawl when configured, otherwise DeepSeek
# api_key: tvly-... # explicit key (do not store in git)
# api_key_env: TAVILY_API_KEY # env variable name (default — per provider)
# base_url: https://api.tavily.com
# cx: <google-cse-id> # provider: google only
# need_content: false # DeepSeek: page content in results
# limit: 5
# tools/web_fetch.yaml
kind: web_fetch
name: web_fetch
description: Fetch a page and return its content as Markdown.
# provider: deepseek # default
# api_key_env: DEEPSEEK_API_KEY
# base_url: https://api.deepseek.com
# max_chars: 0 # 0 = no cap
API key
The key is resolved in the order: api_key from the config → environment variable
api_key_env (by default — its own for each provider, see the table;
DEEPSEEK_API_KEY for DeepSeek Search and Fetch). The searxng provider requires
no key. For DeepSeek you do not need to duplicate the key: when
DEEPSEEK_API_KEY is missing, the module automatically uses AGENT_OS_API_KEY,
then .env, then provider.api_key from config/server.yaml (when its base URL
points at DeepSeek) — the same key used for inference. The key can also be set
via the settings module (the Settings page): the value is
saved to the DB and projected into the corresponding env variable without a
restart. A manual value in .env/env.overrides.yaml takes priority.
Demo agent
searchers-demo is shipped by the module as a config bundle and is loaded
automatically alongside config/agents/ (if the names match, the agent from
config/agents wins). The agent declares
tool_files: [tools/web_search.yaml, tools/web_fetch.yaml], and the tools are
added to its list automatically.
Agent example
# config/agents/my-search-agent/agent.yaml
name: my-search-agent
instructions: |
You are a research assistant. Use web_search for current facts and web_fetch
to read a page in full. Answer first, then list relevant links with short
descriptions. Never invent URLs.
tool_files:
- tools/web_search.yaml
- tools/web_fetch.yaml