[GH-ISSUE #14097] feat: Provide JWT (or similar) to "tools" #32669

Closed
opened 2026-04-25 06:34:19 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @brainboutique on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14097

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

It would be highly benefitial to provide current user context to Tools call - for example, as a JWT token (with configurable server key). This way the response could be tailored to, for example, user permissions, user role or similar.

Desired Solution you'd like

A standardized way for Tools code to access user context - like email - in a trusted way.

Alternatives Considered

See #13457 or #13608

Additional Context

No response

Originally created by @brainboutique on GitHub (May 20, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14097 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description It would be highly benefitial to provide current user context to Tools call - for example, as a JWT token (with configurable server key). This way the response could be tailored to, for example, user permissions, user role or similar. ### Desired Solution you'd like A standardized way for Tools code to access user context - like email - in a trusted way. ### Alternatives Considered See #13457 or #13608 ### Additional Context _No response_
Author
Owner

@brainboutique commented on GitHub (May 20, 2025):

Missed the existing support for this param:
__user__.get("email")

<!-- gh-comment-id:2895152614 --> @brainboutique commented on GitHub (May 20, 2025): Missed the existing support for this param: `__user__.get("email")`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#32669