execute_code_api_v1_utils_code_execute_post
Execute code snippets via OpenWebUI's admin API to perform custom operations or automate tasks.
Instructions
Execute 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": {
"code": "<code>"
},
"name": "execute_code_api_v1_utils_code_execute_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |