Clarify unavailable version handling

This commit is contained in:
Fahreddin Özcan
2026-08-12 18:04:01 +03:00
parent b1d49e7561
commit fa80ea6139
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ IMPORTANT: Do not call this tool more than 3 times per question. If you cannot f
You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query.
Do not substitute a different version when the requested one is unavailable.
If the requested version is unavailable, say so and do not retry with a different or unversioned library ID.
Do not call this tool more than 3 times per question.`,
inputSchema: z.preprocess(
+1 -1
View File
@@ -51,7 +51,7 @@ export const QUERY_DOCS_DESCRIPTION = `Retrieves and queries up-to-date document
You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query.
Do not substitute a different version when the requested one is unavailable.
If the requested version is unavailable, say so and do not retry with a different or unversioned library ID.
Do not call this tool more than 3 times per question.`;
+1 -1
View File
@@ -55,7 +55,7 @@ ctx7 docs /vercel/next.js "How to set up app router"
ctx7 docs /vercel/next.js/v14.3.0-canary.87 "How to set up app router"
```
The available versions are listed in the `ctx7 library` output. If the requested version is not listed, say it is unavailable; do not substitute another version.
The available versions are listed in the `ctx7 library` output. If the requested version is not listed, say it is unavailable; do not retry with a different or unversioned library ID.
```bash
# Output as JSON for scripting
+1 -1
View File
@@ -101,7 +101,7 @@ npx ctx7@latest docs /vercel/next.js "How to set up app router"
npx ctx7@latest docs /vercel/next.js/v14.3.0-canary.87 "How to set up app router"
```
The available versions are listed in the `library` command output. If the requested version is not listed, say it is unavailable; do not substitute another version.
The available versions are listed in the `library` command output. If the requested version is not listed, say it is unavailable; do not retry with a different or unversioned library ID.
## Step 2: Query Documentation