We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3abba1a + c6a80dc commit 392ce08Copy full SHA for 392ce08
1 file changed
src/tools/search.ts
@@ -256,6 +256,9 @@ const search = async (input: SearchInput): Promise<SearchResult> => {
256
} catch (e) {
257
return JSON.stringify({ success: false, error: "Error checking if record is a group: " + e.toString() });
258
}
259
+ } else if (pDatabaseName) {
260
+ // If a specific database was provided, use its root group to scope the search
261
+ searchScope = targetDatabase.root();
262
} else {
263
searchScope = null; // Search all databases
264
0 commit comments