Skip to content

feat: add query and query_targets parameters to channels_list tool#252

Open
unsafe9 wants to merge 3 commits intokorotovsky:masterfrom
unsafe9:feature/channels-list-query-filter
Open

feat: add query and query_targets parameters to channels_list tool#252
unsafe9 wants to merge 3 commits intokorotovsky:masterfrom
unsafe9:feature/channels-list-query-filter

Conversation

@unsafe9
Copy link
Copy Markdown

@unsafe9 unsafe9 commented Mar 24, 2026

Summary

  • Adds query parameter for case-insensitive keyword filtering on channels_list
  • Adds query_targets parameter to control which fields are searched (name by default, optionally topic, purpose)
  • Filtering is applied after type filtering and before pagination, operating on the in-memory channel cache

Closes #251

Test plan

  • Integration test TestIntegrationChannelsListQueryFilter verifies filtering with query=testcase
  • Verify query alone defaults to name-only matching
  • Verify query_targets=name,topic,purpose broadens the search
  • Verify no regression on existing channels_list behavior without query

unsafe9 added 3 commits March 25, 2026 00:51
Closes korotovsky#251. Adds keyword filtering to channels_list so users can find
channels without paginating through the entire list. Matches are
case-insensitive substrings; query_targets controls which fields to
search (name by default, optionally topic and purpose).
Use map[string]bool instead of struct, parse inline in handler with
warn logging for invalid values, matching filterChannelsByTypes style.
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.

Feature request: Add keyword filter to channels_list tool

1 participant