feat(slack): canvas related operations#4306
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Updates the Slack block UI/config to expose these operations, add their inputs, route each operation to the new tool IDs, and surface new outputs ( Expands Slack OAuth configuration by adding the Reviewed by Cursor Bugbot for commit a58ecb7. Configure here. |
Greptile SummaryThis PR adds four new Slack canvas operations — Get Canvas Info, List Canvases, Lookup Canvas Sections, and Delete Canvas — implemented as individual tool files following the existing Slack tool patterns. The new Confidence Score: 4/5Safe to merge — all findings are P2 style and quality issues with no impact on runtime correctness. P2-only findings: one duplicate function across two files, a redundant always-true output field, and a minor defensive gap in the JSON criteria parser. No logic bugs, no security concerns, and the OAuth scope additions are correct. apps/sim/tools/slack/get_canvas.ts and apps/sim/tools/slack/list_canvases.ts share an identical Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User/LLM
participant B as SlackBlock
participant T as Tool (registry)
participant S as Slack API
U->>B: operation = get_canvas (canvasId)
B->>T: slack_get_canvas {canvasId, accessToken}
T->>S: GET files.info?file={canvasId}
S-->>T: {ok, file: SlackCanvasFile}
T-->>B: {output: {canvas}}
U->>B: operation = list_canvases (filters)
B->>T: slack_list_canvases {channel?, count?, page?, ...}
T->>S: GET files.list?types=canvas&...
S-->>T: {ok, files[], paging}
T-->>B: {output: {canvases[], paging}}
U->>B: operation = lookup_canvas_sections (canvasId, criteria)
B->>T: slack_lookup_canvas_sections {canvasId, criteria}
T->>S: POST canvases.sections.lookup
S-->>T: {ok, sections[]}
T-->>B: {output: {sections[]}}
U->>B: operation = delete_canvas (canvasId)
B->>T: slack_delete_canvas {canvasId, accessToken}
T->>S: POST canvases.delete {canvas_id}
S-->>T: {ok: true}
T-->>B: {output: {ok: true}}
|
|
bugbot run |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a58ecb7. Configure here.

Summary
New slack operations for -- get canvas info, list canvases, lookup canvas sections, delete canvas
Type of Change
Testing
Tested manually
Checklist