-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat(tools): added more slack tools #2212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR expands Slack integration by adding four new workspace management tools: list channels, list channel members, list users, and get user info. Key Changes:
Additional Improvements:
All new tools follow established patterns, include proper OAuth integration, error handling, and pagination support. Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant Block as Slack Block UI
participant Tool as Slack Tool
participant API as Slack API
Note over User,API: List Channels Flow
User->>Block: Select "List Channels" operation
Block->>Tool: slack_list_channels(accessToken, includePrivate, limit)
Tool->>API: GET conversations.list?types=public_channel,private_channel
API-->>Tool: Return channels array
Tool-->>Block: {channels: [...], count: n}
Block-->>User: Display channel list
Note over User,API: List Channel Members Flow
User->>Block: Select "List Channel Members" + channel
Block->>Tool: slack_list_members(accessToken, channel, limit)
Tool->>API: GET conversations.members?channel=C123
API-->>Tool: Return member IDs array
Tool-->>Block: {members: [U123, U456], count: n}
Block-->>User: Display member IDs
Note over User,API: List Users Flow
User->>Block: Select "List Users" operation
Block->>Tool: slack_list_users(accessToken, includeDeleted, limit)
Tool->>API: GET users.list
API-->>Tool: Return users array
Tool-->>Block: {users: [...profiles...], count: n}
Block-->>User: Display user profiles
Note over User,API: Get User Info Flow
User->>Block: Select "Get User Info" + userId
Block->>Tool: slack_get_user(accessToken, userId)
Tool->>API: GET users.info?user=U123
API-->>Tool: Return detailed user object
Tool-->>Block: {user: {...detailed profile...}}
Block-->>User: Display user details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
13 files reviewed, no comments
Summary
Type of Change
Testing
Tested manually
Checklist