Skip to content

Commit b4384db

Browse files
Merge pull request #5 from gleanwork/default-params
fix: Adds defaults for search.pageSize (otherwise no results are returned)
2 parents 3a82032 + b250e3a commit b4384db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const SearchSchema = z.object({
195195
.number()
196196
.optional()
197197
.describe('Maximum characters for snippets'),
198-
pageSize: z.number().optional().describe('Number of results to return'),
198+
pageSize: z.number().default(10).describe('Number of results to return'),
199199
timestamp: z
200200
.string()
201201
.optional()

0 commit comments

Comments
 (0)