Testing: Verified that __tools__ now correctly contains built-in tools in Pipe functions.
Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing.
Code review: Have you performed a self-review of your code?
Design & Architecture: Follows existing patterns for tool resolution.
Git Hygiene: Atomic change.
Title Prefix:fix.
Changelog Entry
Description
Previously, Pipe functions only received user-defined tools in their __tools__ parameter. This PR ensures that built-in tools (like web search, image generation, etc.) are also populated when enabled for the model.
Changed
Updated generate_function_chat_completion in backend/open_webui/functions.py to include built-in tools in the extra_params['__tools__'] passed to Pipe functions.
Fixed
Fixed missing built-in tools in the __tools__ parameter for Pipe functions.
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 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/23366
**Author:** [@olivier-lacroix](https://github.com/olivier-lacroix)
**Created:** 4/3/2026
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix/builtin-tools-in-pipes`
---
### 📝 Commits (2)
- [`64e3a6b`](https://github.com/open-webui/open-webui/commit/64e3a6bf2a04558a8bf3e378df9d35a51685c133) fix: include built-in tools in Pipe functions
- [`8afa9b3`](https://github.com/open-webui/open-webui/commit/8afa9b3a4b0fdd2af4285e22cead1559a5bad492) Have user_tools override builtin_tools
### 📊 Changes
**1 file changed** (+15 additions, -3 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/functions.py` (+15 -3)
</details>
### 📄 Description
# Pull Request Checklist
- [x] **Target branch:** Verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request down below.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Add docs in [Open WebUI Docs Repository](https://github.com/open-webui/docs).
- [ ] **Dependencies:** No new dependencies.
- [ ] **Testing:** Verified that `__tools__` now correctly contains built-in tools in Pipe functions.
- [ ] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**.
- [x] **Code review:** Have you performed a self-review of your code?
- [x] **Design & Architecture:** Follows existing patterns for tool resolution.
- [x] **Git Hygiene:** Atomic change.
- [x] **Title Prefix:** `fix`.
# Changelog Entry
### Description
Previously, Pipe functions only received user-defined tools in their `__tools__` parameter. This PR ensures that built-in tools (like web search, image generation, etc.) are also populated when enabled for the model.
### Changed
- Updated `generate_function_chat_completion` in `backend/open_webui/functions.py` to include built-in tools in the `extra_params['__tools__']` passed to Pipe functions.
### Fixed
- Fixed missing built-in tools in the `__tools__` parameter for Pipe functions.
---
### Additional Information
- Fixes #23365
### Contributor License Agreement
- [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<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/23366
Author: @olivier-lacroix
Created: 4/3/2026
Status: ❌ Closed
Base:
dev← Head:fix/builtin-tools-in-pipes📝 Commits (2)
64e3a6bfix: include built-in tools in Pipe functions8afa9b3Have user_tools override builtin_tools📊 Changes
1 file changed (+15 additions, -3 deletions)
View changed files
📝
backend/open_webui/functions.py(+15 -3)📄 Description
Pull Request Checklist
devbranch.__tools__now correctly contains built-in tools in Pipe functions.fix.Changelog Entry
Description
Previously, Pipe functions only received user-defined tools in their
__tools__parameter. This PR ensures that built-in tools (like web search, image generation, etc.) are also populated when enabled for the model.Changed
generate_function_chat_completioninbackend/open_webui/functions.pyto include built-in tools in theextra_params['__tools__']passed to Pipe functions.Fixed
__tools__parameter for Pipe functions.Additional Information
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.