OpenClaw Web Search and Fetch Guide
Configure web search and web fetch, choose a provider, test citations, and keep untrusted web content inside a narrow tool policy.
Use web_search to discover sources and web_fetch to retrieve readable content from a known URL. Use the browser tool only when the task requires interactive navigation, forms, or client-rendered controls.
Choose a search provider
OpenClaw supports several provider plugins. Select one provider whose terms, region, result quality, and credential model fit the task. Configure its key through the provider or plugin flow; do not put search credentials in Skill text.
Inspect effective capability and configuration:
openclaw status --all
openclaw plugins list
openclaw doctor
The active tool profile and provider plugin must both permit the tool. Adding a key does not repair an excluded tool.
Test search and fetch separately
Ask for a narrow current query and require source URLs. Then fetch one known public documentation page. Confirm that the answer distinguishes retrieved facts from inference and does not claim that a search snippet proves the full page content.
Treat all fetched text as untrusted. Web content can contain instructions intended to manipulate an agent. The operator request, tool policy, and sandbox boundary remain higher priority.
Control scope and cost
Set a small result count, restrict domains when the task has an authoritative source, and avoid downloading several pages when one primary source answers the question. Never send secrets or private workspace content to a search provider.
Expected result
- Search returns current source URLs from the selected provider.
- Fetch returns readable content for an allowed URL.
- The response cites the correct source and separates inference.
- The tools remain unavailable to agents that do not need web access.
Source notes
Technical facts on this page were checked against primary sources.