mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #22156] [CLOSED] feat: add upload_file_to_terminal builtin tool #97560
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22156
Author: @Classic298
Created: 3/2/2026
Status: ❌ Closed
Base:
dev← Head:feat/upload-file-to-terminal-tool📝 Commits (5)
2ef5a93feat: add upload_file_to_terminal builtin tool9722916fixesf978e33feat7394d38Merge branch 'dev' into feat/upload-file-to-terminal-toolbe7b392. (#168)📊 Changes
3 files changed (+146 additions, -0 deletions)
View changed files
📝
backend/open_webui/tools/builtin.py(+139 -0)📝
backend/open_webui/utils/middleware.py(+1 -0)📝
backend/open_webui/utils/tools.py(+6 -0)📄 Description
Addresses: https://github.com/open-webui/open-webui/issues/22528
Description
Adds a new builtin tool, upload_file_to_terminal, that allows an AI model to upload files attached to a chat directly to a connected Open Terminal server's working directory.
Changes
backend/open_webui/tools/builtin.py
backend/open_webui/utils/tools.py
backend/open_webui/utils/middleware.py
How It Works
When a user attaches a file to a chat and asks the model to upload it to the terminal:
Testing
Tested locally with Open Terminal. Verified:
Contributor License Agreement
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.