Skip to content

Conversation

@jinglemansweep
Copy link
Contributor

Replace ambiguous get_conversation_history with two distinct tools:

  • get_channel_messages: Read messages from a specific channel
  • get_user_messages: Read private messages with a specific user

Both tools have optional limit parameter (default 5) and return messages in time order.

Replace ambiguous get_conversation_history with two distinct tools:
- get_channel_messages: Read messages from a specific channel
- get_user_messages: Read private messages with a specific user

Both tools have optional limit parameter (default 5) and return
messages in time order.
Copilot AI review requested due to automatic review settings November 23, 2025 19:48
@jinglemansweep jinglemansweep merged commit 40a00aa into main Nov 23, 2025
3 checks passed
@jinglemansweep jinglemansweep deleted the claude/refactor-message-tools-01UyXCJaDivFtg1xTQ2xjVcc branch November 23, 2025 19:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the conversation history retrieval functionality by replacing the ambiguous get_conversation_history tool with two specialized tools that explicitly distinguish between channel and user contexts. This improves clarity in the tool API by making the distinction between public channel messages and private user messages more explicit.

Key Changes:

  • Replaced get_conversation_history with get_channel_messages for reading channel messages
  • Added get_user_messages for reading private messages with specific users
  • Both new tools include improved documentation with explicit parameter descriptions and default values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants