Skip to content

Context7 Platform -- Up-to-date docs for AI agents

feat: make page parameter optional with default value

enesgules637bcf2fa6fd
diff --git a/src/index.ts b/src/index.ts
index ee91fdec..60521680 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -211,8 +211,9 @@ server.registerTool(
.int()
.min(1)
.max(10)
+ .optional()
.describe(
- "Page number for pagination (start: 1). If the context is not sufficient, try page=2, page=3, page=4, etc. with the same topic."
+ "Page number for pagination (start: 1, default: 1). If the context is not sufficient, try page=2, page=3, page=4, etc. with the same topic."
),
},
},