mirror of
https://github.com/upstash/context7.git
synced 2025-12-10 14:32:04 +00:00
fix: allow user to set libraryid in prompt
This commit is contained in:
parent
35d4a10270
commit
5fc52df93c
@ -114,12 +114,12 @@ ${resultsText}`,
|
||||
|
||||
server.tool(
|
||||
"get-library-docs",
|
||||
"Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool.",
|
||||
"Fetches up-to-date documentation for a library. You must call 'resolve-library-id' 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 'library:/org/project'.",
|
||||
{
|
||||
context7CompatibleLibraryID: z
|
||||
.string()
|
||||
.describe(
|
||||
"Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'."
|
||||
"Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id' or directly from user query in the format 'library:/org/project'."
|
||||
),
|
||||
topic: z
|
||||
.string()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user