You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2.10.0 feat(search): add namespace prefix search for page titles
Add scope parameter to roam_search_by_text that enables searching for
pages by namespace prefix (e.g., "Convention/" finds all Convention/*
pages). Includes CLI --namespace flag and documentation updates.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
description: 'Search for blocks containing specific text across all pages or within a specific page. This tool supports pagination via the `limit` and `offset` parameters.',
364
+
description: 'Search for blocks containing specific text across all pages or within a specific page. Use `scope: "page_titles"` to search for pages by namespace prefix (e.g., "Convention/" finds all pages starting with that prefix). This tool supports pagination via the `limit` and `offset` parameters.',
365
365
inputSchema: {
366
366
type: 'object',
367
367
properties: withMultiGraphParams({
368
368
text: {
369
369
type: 'string',
370
-
description: 'The text to search for'
370
+
description: 'The text to search for. When scope is "page_titles", this is the namespace prefix (trailing slash optional).'
371
+
},
372
+
scope: {
373
+
type: 'string',
374
+
enum: ['blocks','page_titles'],
375
+
default: 'blocks',
376
+
description: 'Search scope: "blocks" for block content (default), "page_titles" for page title namespace prefix matching.'
371
377
},
372
378
page_title_uid: {
373
379
type: 'string',
374
-
description: 'Optional: Title or UID of the page to search in (UID is preferred for accuracy). If not provided, searches across all pages.'
380
+
description: 'Optional: Title or UID of the page to search in (UID is preferred for accuracy). If not provided, searches across all pages. Only used when scope is "blocks".'
375
381
},
376
382
case_sensitive: {
377
383
type: 'boolean',
378
-
description: 'Optional: Whether the search should be case-sensitive. If false, it will search for the provided text, capitalized versions, and first word capitalized versions.',
384
+
description: 'Optional: Whether the search should be case-sensitive. If false, it will search for the provided text, capitalized versions, and first word capitalized versions. Only used when scope is "blocks".',
0 commit comments