Skip to content

feat(web-search): add country and language parameters - #1046

Merged
steipete merged 8 commits into
openclaw:mainfrom
YuriNachos:feature/web-search-localization
Jan 16, 2026
Merged

steipete merged 8 commits into
openclaw:mainfrom
YuriNachos:feature/web-search-localization

Conversation

@YuriNachos

Copy link
Copy Markdown
Contributor

Summary

  • Add country, search_lang, and ui_lang optional parameters to web_search tool
  • Enables region-specific and localized search results via Brave Search API
  • Maintains backward compatibility (all parameters optional)

Changes

  • Extended WebSearchSchema with three new optional string parameters
  • Updated runWebSearch to pass parameters to Brave API URL
  • Added cache key suffix for localization params
  • Added unit tests for new parameters
  • Updated documentation with examples

Testing

  • Unit tests added for all three new parameters
  • Existing tests continue to pass
  • Type checking and linting pass

Fixes

Closes #994

🤖 Generated with Claude Code

YuriNachos and others added 8 commits January 16, 2026 23:14
- Add country, search_lang, and ui_lang optional parameters to runWebSearch
- Pass new parameters to Brave Search API as URL query parameters
- Update cache key to include localization parameters
- Wire parameters through createWebSearchTool execute function
Added three new test cases to verify the new country, search_lang, and ui_lang
parameters are correctly passed to the Brave Search API.

Co-Authored-By: Claude <[email protected]>
@steipete
steipete force-pushed the feature/web-search-localization branch from b70b2ef to 6b8db36 Compare January 16, 2026 23:17
@steipete
steipete merged commit 9aad6df into openclaw:main Jan 16, 2026
@steipete

Copy link
Copy Markdown
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: 6b8db36
  • Merge commit: 9aad6df

Thanks @YuriNachos!

lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…ocalization

feat(web-search): add country and language parameters
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…ocalization

feat(web-search): add country and language parameters
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026
…ocalization

feat(web-search): add country and language parameters
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
…ocalization

feat(web-search): add country and language parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants