openwebui_create_function
Create Pipe, Filter, or Action functions in Open WebUI with Python code. Add model options, transform messages, or add chat buttons.
Instructions
Create a new Pipe, Filter, or Action function in Open WebUI. Pipes add new model options. Filters transform messages. Actions add chat toolbar buttons. Provide valid Python code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique function ID (lowercase, underscores only, e.g. "my_summarizer_pipe") | |
| name | Yes | Human-readable display name | |
| type | Yes | "pipe" — adds a new model option; "filter" — transforms messages; "action" — adds chat button | |
| content | Yes | Python source code for the function | |
| description | No | Optional description shown in the UI |