feat(agent-toolkit): scope DOCUMENTS search to specific docs via docIds - #485
Open
miloszpi-monday wants to merge 1 commit into
Open
feat(agent-toolkit): scope DOCUMENTS search to specific docs via docIds#485miloszpi-monday wants to merge 1 commit into
miloszpi-monday wants to merge 1 commit into
Conversation
search gains an optional docIds argument, forwarded to search.docs(ids:), so a DOCUMENTS search can be scoped to a known set of documents (ids as they appear in document URLs, at most 512) instead of the whole account. It combines with workspaceIds, and an empty array or null means no filter. search.docs(ids:) exists from API version 2026-10, the version the toolkit pins, and was verified against the live API. The schema snapshot carries only the hand-applied ids argument, verified against a live fetch, to keep unrelated server-side drift out of the diff. Co-authored-by: Cursor <cursoragent@cursor.com>
miloszpi-monday
marked this pull request as ready for review
September 11, 2026 09:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docIdsfilter on the search tool for DOCUMENTS search, forwarded assearch.docs(ids:).workspaceIds; empty/nullmeans no filter.idsargument to the local schema snapshot (verified against a live fetch) to avoid pulling unrelated schema drift. Toolkit version bumped to 5.70.0.Test plan
yarn workspace @mondaydotcomorg/agent-toolkit test(or the search-tool suite) and confirm the newdocIdscases passdocIds: undefinedand returns the same results as beforedocIds: [id]plus a matchingsearchTermreturns only those docsdocIdscombines withworkspaceIds, and that a scalar/[]/nullis accepted the same way as other id filterssearch.docs(ids:)call against API version2026-10Made with Cursor