Skip to content

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

Closed

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

Anthropic — docs

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

OpenAI — docs

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

xAI — docs

{ "type": "web_search" }

Google — docs

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

Upstream: earendil-works/pi#709

Activity

  1. nullswan commented on Jan 14, 2026

    @nullswan
    Author

    Upstream dependency: earendil-works/pi#709

  2. kmahyyg commented on Jan 26, 2026

    @kmahyyg

    FR: Disable Web Search feature, even it's available on provider.

  3. sebslight commented on Jan 29, 2026

    @sebslight
    Contributor

    Closing this issue due to inactivity (no updates in 3+ days). If this is still relevant, please feel free to reopen with any additional context or updates.

    Thanks for taking the time to report this!

  4. ivelin commented on Feb 2, 2026

    @ivelin

    Grok 4.1 Fast feels artificially handicapped as compared to the Grok app use. Quite possible because openclaw does not allow configuring the xAI API to use /responses and native server side tools (web_search, x_search, sandboxed code exec).

  5. locked as resolved and limited conversation to collaborators on Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions