adds additional brave-search-api params#4321
Merged
lorenzejay merged 1 commit intocrewAIInc:mainfrom Feb 2, 2026
Merged
Conversation
bec4f2d to
26dff2a
Compare
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Outdated
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Outdated
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Outdated
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Outdated
Show resolved
Hide resolved
1e0be93 to
a6eb14a
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Outdated
Show resolved
Hide resolved
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/brave_search_tool.py
Show resolved
Hide resolved
37884eb to
5933519
Compare
Introduces support for additional Brave Search API web-search parameters.
cd72cee to
0e6119f
Compare
lorenzejay
approved these changes
Feb 2, 2026
Collaborator
lorenzejay
left a comment
There was a problem hiding this comment.
lovely ! tested and it works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces support for additional Brave Search API web-search parameters.
Note
Medium Risk
Medium risk because
BraveSearchToolnow returns JSON-encoded structured results instead of the previous human-readable text, which may break downstream consumers expecting the old format. It also widens request parameter surface area and changes default query argument naming (while keeping input backward compatibility).Overview
BraveSearchTool now supports many additional Brave web-search parameters (e.g.,
country,search_language,count/offset,safesearch,freshness, and several boolean flags), with Pydantic validation for constrained fields likefreshnessandsafesearch.The tool’s output format changes to a JSON list of result objects (with
url,title, optionaldescription, optionalsnippets) and requests are forced toresult_filter=web; tests are updated to callqueryand to validate the JSON structure.Written by Cursor Bugbot for commit 0e6119f. This will update automatically on new commits. Configure here.