Web search and fetch
A conversation can search the web and read pages, either through the search built into its model's provider or through a search service you set up in Mewrk. You turn web access on per conversation, choose who searches and fetches, and can filter and trim what comes back.
Turn on web access
Web access is controlled by two switches under Conversation settings → Advanced tools: Web search gives the model web_search, and Web fetch gives it web_fetch. Open conversation settings from More options → Conversation settings in the top bar, or press ⌘⇧, (CtrlShift, on Windows).
The two switches are independent: a conversation can search without fetching, fetch without searching, or do neither; with both off, the model gets no web tools. With Native chosen for Web fetch, web_fetch is offered only on Anthropic Messages, AWS Bedrock and Claude Agent models, see Fetching pages.
A switch that is on shows its Search provider or Fetch provider and result settings beneath it, and Domain filter appears while either switch is on. Neither provider menu has an Off row: to turn searching or fetching off, turn its switch off. Turning a switch off and on again brings back the provider it had before (remembered while Mewrk is running, not saved).
If the chosen provider is switched off in Settings, unavailable or missing its API key, the tool is still offered, and each call fails with a message naming the setting to change. Changing providers in Settings → Providers → Search providers never adds a tool to a conversation or removes one.
The built-in mewrk preset starts with web access on, both providers on Native, Result count 5, Result compression 2,000 and Domain filter off.
A preset's settings window and each agent role have the same Advanced tools page. A role has the same two switches, one for each half, but it reaches the web only when the conversation that starts it does. It uses its own providers, result settings and domain filter, not the conversation's.
Search providers
Advanced tools → Search provider (shown while Web search is on) chooses who runs a search:
| Choice | What happens |
|---|---|
| Native | The model's own provider searches, in a separate request that contains only the query, and returns a written report with the sites it consulted. The provider bills the tokens, and they appear in your usage. |
| A provider | Mewrk calls that search service, and the model gets a list of results, each with a title, URL and text. Only providers switched on in Settings are listed. |
The menu has no Off row: to stop the model searching, turn Web search off. web_fetch is not affected.
If a provider you picked is later switched off in Settings, becomes unavailable or lacks its API key, the menu reads Repair search provider, and searches fail until you fix it or choose again.
Native search by provider type
Whether Native works depends on the type of the model's provider, as shown in Settings → Providers → Model providers (see providers):
| Provider type | Native search | Native fetch |
|---|---|---|
| Anthropic Messages, AWS Bedrock | Yes | Yes |
| OpenAI Responses, OpenAI Codex (ChatGPT), Azure OpenAI, xAI | Yes | No |
| Google Gemini, Google Vertex AI | Yes (Google Search grounding) | No |
| Claude Agent (Claude Code) | Yes | Yes |
| OpenAI Chat Completions, OpenAI Compatible | No | No |
On Anthropic Messages and AWS Bedrock, the Native row opens a submenu with the tool version: web_search_20250305 (the default) or web_search_20260209, which adds dynamic filtering; for fetch, web_fetch_20250910 (the default) or web_fetch_20260209.
On Claude Agent, Native search and fetch use Claude Code's own WebSearch and WebFetch, under the account Claude Agent is signed in with, and there is no tool version to pick. What a fetch returns is the text of the page as Claude Code's model rewrote it, not the raw page.
On a model whose type has no native search, Native cannot search, so choose a provider; ExaMCP is on out of the box and needs no API key.
Native search becomes fixed for a conversation once a search has run with it on a model that supports it, and Native fetch once a request has offered it. A fixed selector is gray and the switch above it can no longer be turned off; you start a new conversation to choose again. Nothing else is ever fixed, so on a model without native search you can switch to a provider at any time. While the model's prompt cache is warm the selector is orange, because after a change the next request cannot reuse that cache.
Set up a provider
Open Settings → Providers → Search providers (⌘, opens Settings, Ctrl, on Windows). Choose a provider in the list and turn on the switch in its header.
| Field | What it does |
|---|---|
| API Key | Saved when you leave the field; clear it to delete it. Kept in the system credential store, never in conversations. Editing an endpoint does not invalidate a saved key. |
| Search endpoint, Fetch endpoint | Leave empty to use the default below. A path is kept: https://gateway.example/tavily sends searches to https://gateway.example/tavily/search. Must be https, except that addresses on your own machine or local network (localhost, *.local, 192.168.x.x and similar) may use plain http. |
| Search engines (Searxng) | Comma-separated engine names. Empty uses the engines the instance enables in both its general and web categories. |
| Basic auth username, Basic auth password (Searxng) | For an instance behind basic authentication. |
| Provider | Searches | Fetches | API key | Default endpoint | Good to know |
|---|---|---|---|---|---|
| Zhipu | Yes | — | Required | https://open.bigmodel.cn/api/paas/v4/web_search |
The endpoint is used as the full address. |
| Tavily | Yes | — | Required | https://api.tavily.com |
|
| Searxng | Yes | — | None | http://localhost:8080 |
Your own instance, with the json output format enabled. Mewrk downloads each result page itself, which is slower. |
| Exa | Yes | — | Required | https://api.exa.ai |
|
| ExaMCP | Yes | — | Optional | https://mcp.exa.ai/mcp |
On out of the box. |
| Bocha | Yes | — | Required | https://api.bochaai.com |
|
| Querit | Yes | Yes | Required | https://api.querit.ai |
|
| fetch | — | Yes | None | Runs on your computer | See below. |
| Jina | Yes | Yes | Required for search; optional for fetch | https://s.jina.ai, https://r.jina.ai |
On out of the box. Fetching works without a key; a key raises the quota. |
| Firecrawl | Yes | Yes | Optional | https://api.firecrawl.dev |
Fetching pages
Advanced tools → Fetch provider (shown while Web fetch is on) works like the search provider, and the two are independent. The menu has no Off row: to stop the model fetching, turn Web fetch off. web_search is not affected.
- Native: on Anthropic Messages and AWS Bedrock models, the provider fetches the page, and Claude Agent uses Claude Code's own WebFetch. Other provider types have no native fetch and no Native row in the menu; OpenAI-style providers read pages as part of their search.
- A provider that can fetch and is switched on: fetch, Jina, Firecrawl or Querit.
On a model with no native fetch, a saved Native choice counts as off: the Web fetch switch reads off and the provider picker is not shown, but the choice itself is not rewritten, and it comes back as it was on a model that has native fetch (if you have not changed it in between).
A fetch provider that is later switched off, unavailable or missing its API key shows Repair fetch provider: web_fetch is still offered, and fetches fail until you fix it or choose again.
The fetch provider
The provider named fetch needs no account: Mewrk downloads the page itself and extracts its readable text.
- It does not run JavaScript, so a page that builds its content in the browser can come back empty.
- It reads up to 4 MiB, keeps up to 200,000 characters of text, and gives up after 30 seconds.
- It refuses pages on private or loopback addresses, except that at Full access the model may fetch a local address it names directly, such as your dev server. Redirects into your local network and links found in search results are always refused.
Domain rules
Advanced tools → Domain filter offers Use blocklist, Use allowlist and Off. Edit lists opens Domain lists, with a Blocklist and an Allowlist page: one rule per line, up to 512 rules per list.
- Only one list is in effect at a time; turning the filter off keeps both lists.
- The blocklist drops results that match a rule. The allowlist keeps only results that match, so an empty allowlist keeps nothing.
- Rules apply to search and fetch results from a provider, and fetching a blocked URL returns nothing. They do not apply to Native.
| Rule | Matches |
|---|---|
<all_urls> |
Every http and https URL. |
https://example.com/* |
Any page on example.com over https, but not its subdomains. |
*://*.example.com/* |
example.com and all its subdomains, over http or https. |
https://example.com/blog/*/draft |
Paths that match the pattern; * matches any text. The pattern must match the whole path and query. |
/example\.com\/login/ |
A regular expression, without regard to case, over the URL's origin, path and query. |
Anything else is not a rule and is ignored. A bare example.com or *.example.com is ignored, so write *://*.example.com/* to cover a domain and all its subdomains. A pattern needs a path: https://example.com is ignored, and https://example.com/ matches only the home page.
An agent role uses only its own filter mode and lists, never the conversation's.
Shaping results
Two numbers on Advanced tools limit how much of a provider's results goes into the context. They sit under the provider menus, and only the rows the selected provider actually has a parameter for are shown. An agent role always sets both itself.
| Field | What it does | Default | Range |
|---|---|---|---|
| Result count | How many results a search asks for, sent as the selected provider's own parameter. 0 sends nothing and leaves it to the provider. If the provider returns more, only the first ones are kept. |
5 | 0 up to the selected provider's ceiling, see the next table |
| Result compression | The most tokens of body text kept per search result (per fetched page), not a budget shared across the call. 0 means no limit: the whole page enters the context, and one fetch can fill the context window. Search and fetch each have their own. |
2,000 | 0–200,000 |
The ceiling for Result count depends on the provider:
| Provider | Ceiling | Request parameter |
|---|---|---|
| Zhipu | 50 | count |
| Tavily | 20 | max_results |
| Searxng | 50 | None, see below |
| Exa | 100 | numResults |
| ExaMCP | 100 | numResults |
| Bocha | 50 | count |
| Querit | 100 | count |
| Jina | 20 | count |
| Firecrawl | 100 | limit |
A larger number is applied as the ceiling; the stored number is not rewritten, and is still there if you switch to a provider with a higher ceiling. Searxng's API has no result-count parameter, so the number is how many result pages Mewrk reads itself, and 0 reads all of them.
Result compression is shown only for providers that have a text-length parameter:
- Search: Exa (converted at about 4 characters a token and sent as a character count), Jina (sent as the
X-Max-Tokensheader, at least 500) and Searxng (Mewrk reads the result pages itself and truncates them locally). - Fetch: Jina Reader (
X-Max-Tokens, at least 500) and fetch (Mewrk truncates locally). - When Mewrk does the truncating, the cut text ends in
.... - The rest have no such parameter and show no row: Zhipu, Tavily, Bocha, Querit, Firecrawl and ExaMCP for search, Querit and Firecrawl for fetch.
A Native search has neither number. A Native fetch sends Result compression on Anthropic Messages and AWS Bedrock as web_fetch's max_content_tokens, and the upstream truncates; in an agent role it is sent only when the model the role actually runs on is in the Anthropic family. A Native fetch on Claude Agent has no such row.
Approvals
At Manual and Accept edits, web_search and web_fetch ask before they run; at Full access they do not (see security levels). One card covers the whole call, the query or every URL in it, and Always allow is offered. Results reach the model marked as untrusted web content.