We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba83025 + 0ca0a8f commit a220f12Copy full SHA for a220f12
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