Skip to content

Commit a033e44

Browse files
committed
Pass limit to channel history api
Signed-off-by: Kelly Abuelsaad <kaymar@gmail.com>
1 parent bdf12cd commit a033e44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mcp/slack_tool/slack_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def get_channel_history(channel_id: str, limit: int = 20) -> List:
6262
try:
6363
# Call the Slack API to list conversations the bot is part of.
6464
response = slack_client.conversations_history(
65-
channel=channel_id
65+
channel=channel_id,
66+
limit=limit
6667
)
6768
return response.get("messages",)
6869
except SlackApiError as e:

0 commit comments

Comments
 (0)