Websuche-Tool
Durchsuche das Web und erhalte Titel, URLs und Textausschnitte. Unterstützt DuckDuckGo (Standard, kein Schlüssel nötig) und Brave als Backends.
Tool-Name
web_search
Parameter
| Key | Type | Default | Description |
|---|---|---|---|
query | string | — | Die Suchanfrage (erforderlich) |
max_results | integer | 5 | Maximale Anzahl der zurückgegebenen Ergebnisse |
Backends
| Backend | API-Schlüssel | Funktionsweise |
|---|---|---|
| DuckDuckGo (Standard) | Nicht erforderlich | Ruft https://lite.duckduckgo.com/lite/ ab und parst HTML-Ergebnisse |
| Brave | Erforderlich | Ruft die https://api.search.brave.com/res/v1/web/search JSON-API auf |
Konfiguration
config.toml
[search]
backend = "duckduckgo" # or "brave"
api_key = "" # Required only for BraveAusgabeformat
Gibt nummerierte Markdown-Ergebnisse zurück:
text
1. [Page Title](https://example.com/page)
A brief snippet describing the page content...
2. [Another Result](https://example.com/other)
Another snippet...