Skip to main content
The web_search Server Tool enables models to search the web during inference. The model decides when a search is needed, ARouter performs it, and the results are injected back into the model’s context automatically.
This is the recommended replacement for the deprecated web plugin and :online model suffix. See Migration Guide below.

Quick Start


Configuration

Pass configuration options inside the arouter object:

Engine Selection

Engine Compatibility


Domain Filtering

Restrict or exclude domains with optional wildcards:

Parsing Citations

Web search results are returned in annotations on the assistant message:

Usage Tracking

Each web search invocation is tracked:

Pricing

With the default max_results: 5, an Exa search costs $0.02 per invocation. Search costs are charged in addition to normal LLM token costs.

Migrating from Web Plugin

If you previously used the web plugin or :online suffix, migration is straightforward: Before (deprecated):
After (recommended):
The key behavioral difference: the plugin always runs web search on every request, while the Server Tool lets the model decide whether a search is warranted for the given query.

Next Steps