Skip to content

Migrate search tool and get_board_items_page to use search_v2 endpoint#225

Merged
damian-rakus merged 3 commits intomasterfrom
feature/damianra/use-search-v2
Mar 9, 2026
Merged

Migrate search tool and get_board_items_page to use search_v2 endpoint#225
damian-rakus merged 3 commits intomasterfrom
feature/damianra/use-search-v2

Conversation

@damian-rakus
Copy link
Collaborator

Summary

Migrates the search tool and get_board_items_page tool from the deprecated search and search_items dev endpoints to the new search_v2 endpoint, which provides a unified search API with structured entity filters.

Changes

  • search-tool.graphql.dev.ts — Replaced search query with search_v2. Uses SearchFiltersInput with entity-specific filters (boards/docs) instead of entity_types and top-level workspace_ids.
  • get-board-items-page-tool.graphql.dev.ts — Replaced search_items query with search_v2. Uses SearchFiltersInput with items: { board_ids } filter.
  • search-tool.ts — Updated searchWithDevEndpointAsync to build SearchFiltersInput per search type, using new query variables (limit instead of size). Response parsing updated from response.search to response.search_v2 with new typename constants (BoardSearchResult/DocSearchResult).
  • get-board-items-page-tool.ts — Updated getItemIdsFromSmartSearchAsync to use search_v2 with structured filters. Results parsed by filtering for ItemSearchResult typename.
  • search-tool.types.ts — Updated imports and typename constants from CrossEntityBoardResult/CrossEntityDocResult to BoardSearchResult/DocSearchResult.
  • Generated types — Regenerated via yarn codegen to reflect new query shapes.
  • Tests — Updated all mock responses, query string assertions, and variable expectations for both tools.

Monday.com Item

https://monday.monday.com/boards/8222767873/views/182723743/pulses/11363095165

@damian-rakus damian-rakus merged commit be0bef8 into master Mar 9, 2026
1 check passed
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.

2 participants