feat(slack): add email field to get user and list users tools#3509
feat(slack): add email field to get user and list users tools#3509waleedlatif1 wants to merge 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Both Written by Cursor Bugbot for commit 2874e91. Configure here. |
Greptile SummaryThis PR extends the Slack Key changes:
The implementation is internally consistent: the runtime transform always produces a value (empty string fallback), gracefully handling both OAuth and bot-token auth methods where the email scope may not have been granted. Confidence Score: 5/5
Sequence DiagramsequenceDiagram
participant U as User / LLM
participant Tool as Slack Tool
participant SlackAPI as Slack API
U->>Tool: Call get_user / list_users (OAuth token with users:read.email)
Tool->>SlackAPI: GET users.info?user=U123 (Bearer token)
SlackAPI-->>Tool: { ok: true, user: { profile: { email: "...", ... } } }
Note over Tool: profile.email || '' (empty string if scope missing)
Tool-->>U: { user: { email: "user@example.com", ... } }
U->>Tool: Call list_users (OAuth token with users:read.email)
Tool->>SlackAPI: GET users.list?limit=100 (Bearer token)
SlackAPI-->>Tool: { ok: true, members: [{ profile: { email: "...", ... } }] }
Note over Tool: user.profile?.email || '' (empty string if scope missing)
Tool-->>U: { users: [{ email: "user@example.com", ... }], ids, names, count }
Last reviewed commit: 2874e91 |
|
@greptile |
|
@cursor review |
|
@greptile |
Summary
users:read.emailscope to Slack OAuth config so email is returned by the APIemailfield fromget_userandlist_userstool responsesType of Change
Testing
Tested manually
Checklist