Skip to content

Commit 970dd99

Browse files
authored
Merge pull request #42 from basicmachines-co/fix/38-metadata-filters-schema
fix: metadata_filters parameter dropped from search_notes schema
2 parents 090e98b + 658a9fa commit 970dd99

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

tools/search-notes.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ export function registerSearchTool(
2626
}),
2727
),
2828
metadata_filters: Type.Optional(
29-
Type.Record(Type.String(), Type.Unknown(), {
30-
description:
31-
"Filter by frontmatter fields. Supports equality, $in, $gt/$gte/$lt/$lte, $between, and array-contains operators.",
32-
}),
29+
Type.Object(
30+
{},
31+
{
32+
additionalProperties: true,
33+
description:
34+
"Filter by frontmatter fields. Supports equality, $in, $gt/$gte/$lt/$lte, $between, and array-contains operators.",
35+
},
36+
),
3337
),
3438
tags: Type.Optional(
3539
Type.Array(Type.String(), {

0 commit comments

Comments
 (0)