Skip to main content

Overview

web_search lets the agent query a search engine and get back a ranked list of results with titles, URLs, and snippets. This is useful for current events, recent documentation, or researching topics the model may not know about. The tool is config-gated - it checks for a configured search provider at startup and marks itself unavailable if none is found. This prevents the model from attempting searches that will always fail.

Supported Providers

Security level: safe | Tier: Standard
query
string
required
The search query. Be specific - use terms like “site:docs.example.com” to scope searches.
count
number
default:"10"
Number of results to return. Range: 1-20.

Examples

{
  "query": "Hono middleware error handling TypeScript 2026",
  "count": 5
}

Response Format

{
  "success": true,
  "data": {
    "query": "Hono middleware error handling",
    "provider": "brave",
    "results": [
      {
        "title": "Error Handling - Hono",
        "url": "https://hono.dev/guides/error-handling",
        "snippet": "Hono has built-in error handling middleware..."
      }
    ],
    "totalResults": 5
  }
}

Checking Availability

You can check the current search configuration from the CLI:
profclaw config show --section integrations.webSearch
Or from within a conversation, the model can check availability programmatically before attempting a search.