Skip to content

Commit c427eb1

Browse files
waleedlatif1claude
andcommitted
fix(slack): rename channel output to channelInfo to avoid type collision
The block outputs already declare `channel` as type string (channel ID from send operation). Rename the object output to `channelInfo` to match the pattern used by get_channel_info and avoid [object Object] rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 663746f commit c427eb1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/sim/tools/slack/create_conversation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const slackCreateConversationTool: ToolConfig<
115115
return {
116116
success: true,
117117
output: {
118-
channel: {
118+
channelInfo: {
119119
id: ch.id,
120120
name: ch.name,
121121
is_private: ch.is_private || false,
@@ -131,7 +131,7 @@ export const slackCreateConversationTool: ToolConfig<
131131
},
132132

133133
outputs: {
134-
channel: {
134+
channelInfo: {
135135
type: 'object',
136136
description: 'The newly created channel object',
137137
properties: CHANNEL_OUTPUT_PROPERTIES,

apps/sim/tools/slack/invite_to_conversation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const slackInviteToConversationTool: ToolConfig<
127127
return {
128128
success: true,
129129
output: {
130-
channel: {
130+
channelInfo: {
131131
id: ch.id,
132132
name: ch.name,
133133
is_private: ch.is_private || false,
@@ -144,7 +144,7 @@ export const slackInviteToConversationTool: ToolConfig<
144144
},
145145

146146
outputs: {
147-
channel: {
147+
channelInfo: {
148148
type: 'object',
149149
description: 'The channel object after inviting users',
150150
properties: CHANNEL_OUTPUT_PROPERTIES,

apps/sim/tools/slack/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,13 +1044,13 @@ export interface SlackGetChannelInfoResponse extends ToolResponse {
10441044

10451045
export interface SlackCreateConversationResponse extends ToolResponse {
10461046
output: {
1047-
channel: SlackChannel
1047+
channelInfo: SlackChannel
10481048
}
10491049
}
10501050

10511051
export interface SlackInviteToConversationResponse extends ToolResponse {
10521052
output: {
1053-
channel: SlackChannel
1053+
channelInfo: SlackChannel
10541054
errors?: Array<{ user: string; ok: boolean; error: string }>
10551055
}
10561056
}

0 commit comments

Comments
 (0)