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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"name": "<name>",
"type": "<type>",
"content": "<content>"
},
"name": "openwebui_create_function"
}
}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 |