Please review the changes carefully. The fix was verified against the existing test suite.
This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/21697
**Author:** [@danielalanbates](https://github.com/danielalanbates)
**Created:** 2/21/2026
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `fix/issue-21579`
---
### 📝 Commits (1)
- [`d091e48`](https://github.com/open-webui/open-webui/commit/d091e48b59f905d84221989a4c7fdbe6fa5695cb) fix: restore model-provided count parameter in web search tool
### 📊 Changes
**2 files changed** (+35 additions, -32 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/retrieval.py` (+29 -27)
📝 `backend/open_webui/tools/builtin.py` (+6 -5)
</details>
### 📄 Description
Fixes #21579
## Summary
This PR fixes: issue: count in MCP call parameter no longer works
## Changes
```
backend/open_webui/routers/retrieval.py | 56 +++++++++++++++++----------------
backend/open_webui/tools/builtin.py | 11 ++++---
2 files changed, 35 insertions(+), 32 deletions(-)
```
## Testing
Please review the changes carefully. The fix was verified against the existing test suite.
---
*This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!*
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21697
Author: @danielalanbates
Created: 2/21/2026
Status: ❌ Closed
Base:
main← Head:fix/issue-21579📝 Commits (1)
d091e48fix: restore model-provided count parameter in web search tool📊 Changes
2 files changed (+35 additions, -32 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+29 -27)📝
backend/open_webui/tools/builtin.py(+6 -5)📄 Description
Fixes #21579
Summary
This PR fixes: issue: count in MCP call parameter no longer works
Changes
Testing
Please review the changes carefully. The fix was verified against the existing test suite.
This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.