Skip to content

[Feature]: Add Country and Language Parameters to web_search Tool #994

Closed

Description

@pein1337-jpg

Feature Request: Add Country and Language Parameters to web_search Tool

Summary

Add support for country, search_lang, and ui_lang parameters to the web_search tool to enable region-specific and localized search results via the Brave Search API.

Current Behavior

The web_search tool currently only accepts:

  • query (string, required)
  • count (number, optional)

All searches use default settings (US region, English language).

Proposed Enhancement

Add optional parameters to web_search:

{
  query: string;      // existing
  count?: number;     // existing
  country?: string;   // NEW: country code (e.g., "DE", "US", "ALL")
  search_lang?: string; // NEW: search language (e.g., "de", "en")
  ui_lang?: string;   // NEW: UI language
}

Use Cases

  1. Localized content: Find results in specific languages

    • Example: Search for "Kreuzfahrt" with country=DE and search_lang=de
  2. Multi-market analysis: Compare search results across regions

Implementation Notes

The Brave Search API already supports these parameters:

  • country: 2-letter country code or "ALL" (default: "US")
  • search_lang: ISO language code (default: "en")
  • ui_lang: UI language code

Reference: Brave Search API Documentation

Example

await web_search({
  query: "TV online schauen",
  count: 10,
  country: "DE",
  search_lang: "de"
});

Benefits

  • More accurate research for regional/localized content
  • Better support for non-US users
  • Enables competitive analysis across markets
  • Aligns with Brave API capabilities

Backwards Compatibility

All new parameters would be optional with sensible defaults, ensuring no breaking changes.

Activity

  1. added
    enhancement
    on Jan 16, 2026
  2. locked as resolved and limited conversation to collaborators on Mar 8, 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