Skip to content

Native Web Search Support (Anthropic, OpenAI, xAI, Google) #877

@nullswan

Description

@nullswan

Add native web search for providers with server-managed search tools.

Provider Tool Cost
Anthropic web_search_20250305 $10/1k
OpenAI web_search_options per call
xAI/Grok web_search FREE
Google google_search $14/1k

Why not use brave-search skill? Native tools = model decides when to search, auto-citations, no extra API key, server-side execution.

Proposed config
agents:
  defaults:
    webSearch:
      enabled: true
      maxUses: 5
      allowedDomains: []
      blockedDomains: []
      userLocation:
        country: ""
        city: ""
Provider API details

Anthropicdocs

{ "type": "web_search_20250305", "name": "web_search", "max_uses": 5 }

OpenAIdocs

model="gpt-4o-search-preview", web_search_options={}

xAIdocs

{ "type": "web_search" }

Googledocs

tools=[{"google_search": {}}]

Upstream: badlogic/pi-mono#709

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions