feat: Improved documentation for Actions #83

Closed
opened 2026-02-15 17:14:54 -05:00 by yindo · 2 comments
Owner

Originally created by @PlebeiusGaragicus on GitHub (May 18, 2025).

Originally assigned to: @Classic298 on GitHub.

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Given the example Action button code:

class Action:
    class Valves(BaseModel):
        pass

    def __init__(self):
        self.valves = self.Valves()
        pass

    async def action(
        self,
        body: dict,
        __user__=None,
        __event_emitter__=None,
        __event_call__=None,
    ) -> Optional[dict]:
        print(f"action:{__name__}")

        response = await __event_call__(
            {
                "type": "input", # <-- WHAT OTHER OPTIONS EXIST?
                "data": {
                    "title": "write a message",
                    "message": "here write a message to append",
                    "placeholder": "enter your message",
                },
            }
        )

I'd like to know what other options are available other than "type": "input" - I'm unable to find a comprehensive list of options in the docs. Perhaps this is so new they haven't been written yet?

Desired Solution you'd like

Improved documentation.

Alternatives Considered

Creating a comprehensive list of example actions so that I can just review the code.

Additional Context

No response

Originally created by @PlebeiusGaragicus on GitHub (May 18, 2025). Originally assigned to: @Classic298 on GitHub. ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Given the example Action button code: ```python class Action: class Valves(BaseModel): pass def __init__(self): self.valves = self.Valves() pass async def action( self, body: dict, __user__=None, __event_emitter__=None, __event_call__=None, ) -> Optional[dict]: print(f"action:{__name__}") response = await __event_call__( { "type": "input", # <-- WHAT OTHER OPTIONS EXIST? "data": { "title": "write a message", "message": "here write a message to append", "placeholder": "enter your message", }, } ) ``` I'd like to know what other options are available other than "type": "input" - I'm unable to find a comprehensive list of options in the docs. Perhaps this is so new they haven't been written yet? ### Desired Solution you'd like Improved documentation. ### Alternatives Considered Creating a comprehensive list of example actions so that I can just review the code. ### Additional Context _No response_
yindo added the documentationenhancement labels 2026-02-15 17:14:54 -05:00
yindo closed this issue 2026-02-15 17:14:54 -05:00
Author
Owner

@Classic298 commented on GitHub (Aug 9, 2025):

Additional fields are now documented, please let me know if this is sufficient. Otherwise I can reopen the issue

https://docs.openwebui.com/features/plugin/functions/action

@Classic298 commented on GitHub (Aug 9, 2025): Additional fields are now documented, please let me know if this is sufficient. Otherwise I can reopen the issue https://docs.openwebui.com/features/plugin/functions/action
Author
Owner

@PlebeiusGaragicus commented on GitHub (Aug 24, 2025):

If you could enumerate every possible option - that'd be great.

Really, I see it's a powerful feature but am unable to see exactly what it can do without reverse-engineering the codebase myself. This is what docs should be for.

@PlebeiusGaragicus commented on GitHub (Aug 24, 2025): If you could enumerate every possible option - that'd be great. Really, I see it's a powerful feature but am unable to see exactly what it can do without reverse-engineering the codebase myself. This is what docs should be for.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/docs#83