#11491: feat(slack): allow agents to resolve channel IDs to names and list workspace channels
channel: slack
app: web-ui
agents
stale
Cluster:
Slack Integration Enhancements
#### Summary
Add `channel-info` and `channel-list` actions to the Slack message tool, bringing it to parity with Discord which already supports these actions.
**Use case:** Agents receive channel IDs in Slack events but cannot resolve them to human-readable names, topics, or metadata. These actions enable channel discovery and ID resolution.
#### Behavior Changes
- New action `channel-info`: Returns channel metadata (id, name, topic, purpose, archive/private status, member count, creation timestamp) for a given channel ID.
- New action `channel-list`: Returns a list of non-archived channels (public + private by default) with optional `limit` parameter.
- Both actions are gated behind the `channelInfo` action flag.
#### Codebase and GitHub Search
- Discord already has `channel-info` and `channel-list` in its channel plugin — this brings Slack to parity.
- No existing Slack implementation for these actions was found.
- Searched GitHub issues: no prior requests found.
#### Tests
- Typecheck passes (`pnpm check`).
- No dedicated test file added — `slack-actions.test.ts` did not have existing patterns for action-level testing.
#### Manual Testing (omit if N/A)
N/A — requires live Slack workspace.
#### Evidence (omit if N/A)
N/A
#### Files Changed
- **`src/slack/actions.ts`** — Added `getSlackChannelInfo()` and `listSlackChannels()` using Slack `conversations.info` and `conversations.list` APIs.
- **`src/agents/tools/slack-actions.ts`** — Added `channelInfo` and `channelList` action handlers.
- **`src/channels/plugins/slack.actions.ts`** — Registered `channel-info` and `channel-list` in the plugin action list and routing.
lobster-biscuit
**Sign-Off**
- Models used: Claude claude-opus-4-6 (via OpenClaw)
- Submitter effort: AI-generated with human review
- Agent notes: Straightforward feature addition following existing Discord patterns.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds Slack parity with the Discord channel plugin by introducing two new message tool actions:
- `channel-info`: routes through the Slack tool handler to `conversations.info` and returns basic metadata.
- `channel-list`: routes through the Slack tool handler to `conversations.list` and returns a list of non-archived channels, with an optional `limit`.
The wiring spans the Slack action implementations (`src/slack/actions.ts`), the agent tool dispatcher (`src/agents/tools/slack-actions.ts`), and the Slack channel plugin adapter (`src/channels/plugins/slack.actions.ts`).
<h3>Confidence Score: 4/5</h3>
- Mostly safe to merge, but channel-list behavior is incomplete for workspaces with many channels.
- Core routing/gating looks consistent with existing Slack actions, but `listSlackChannels()` currently ignores Slack pagination and will silently truncate results beyond the first page, which can break agents that rely on complete channel discovery.
- src/slack/actions.ts
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#15626: Slack: add channel create for message tool
by imWildCat · 2026-02-13
84.5%
#6553: feat(slack): expose thread-reply action
by erauner12 · 2026-02-01
83.3%
#8024: fix(slack): resolve channel names via directory for cross-account m...
by emma-digital-assistant · 2026-02-03
81.0%
#9520: fix: ignore slack already_reacted
by bolismauro · 2026-02-05
79.5%
#9985: feat(slack): add channel-aware context for AI Assistant threads
by natedenh · 2026-02-05
79.2%
#22591: feat(cli): expose Discord channel lifecycle management through unif...
by yinghaosang · 2026-02-21
78.6%
#15863: fix: route agent-to-agent Slack messages to bound sessions
by MisterGuy420 · 2026-02-14
78.5%
#8684: fix(slack): add title param and channel resolution for file upload
by shuans · 2026-02-04
78.2%
#13489: fix: preserve Slack channel/user ID case in target normalization
by sandieman2 · 2026-02-10
78.2%
#5036: docs: improve Slack setup and troubleshooting guide
by DanBatten · 2026-01-31
77.6%