ENยทESยทDEยทPTยทFR
โŒ˜K

Web Search Tool

Search the web and return titles, URLs, and snippets. Supports DuckDuckGo (default, no key needed) and Brave backends.

Tool Name

web_search

Parameters

KeyTypeDefaultDescription
querystringโ€”The search query (required)
max_resultsinteger5Maximum number of results to return

Backends

BackendAPI KeyHow It Works
DuckDuckGo (default)Not requiredFetches https://lite.duckduckgo.com/lite/ and parses HTML results
BraveRequiredCalls https://api.search.brave.com/res/v1/web/search JSON API

Configuration

config.toml
[search]
backend = "duckduckgo"  # or "brave"
api_key = ""            # Required only for Brave

Output Format

Returns numbered markdown results:

text
1. [Page Title](https://example.com/page)
   A brief snippet describing the page content...

2. [Another Result](https://example.com/other)
   Another snippet...