mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-24 12:25:11 +00:00
Update instructions/context7.instructions.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -65,17 +65,17 @@ When Context7 is available as an MCP server, use it automatically as follows.
|
|||||||
### Tool workflow
|
### Tool workflow
|
||||||
|
|
||||||
1) **If the user provides a library ID**, use it directly.
|
1) **If the user provides a library ID**, use it directly.
|
||||||
- Valid forms: `/owner/repo` or `/owner/repo/version` (for pinned versions).
|
- Valid forms: `/owner/repo` or `/owner/repo/version` (for pinned versions).
|
||||||
|
|
||||||
2) Otherwise, **resolve the library ID** using:
|
2) Otherwise, **resolve the library ID** using:
|
||||||
- Tool: `resolve-library-id`
|
- Tool: `resolve-library-id`
|
||||||
- Inputs:
|
- Inputs:
|
||||||
- `libraryName`: the library/framework name (e.g., “next.js”, “supabase”, “prisma”)
|
- `libraryName`: the library/framework name (e.g., “next.js”, “supabase”, “prisma”)
|
||||||
- `query`: the user’s task (used to rank matches)
|
- `query`: the user’s task (used to rank matches)
|
||||||
|
|
||||||
3) **Fetch relevant documentation** using:
|
3) **Fetch relevant documentation** using:
|
||||||
- Tool: `query-docs`
|
- Tool: `query-docs`
|
||||||
- Inputs:
|
- Inputs:
|
||||||
- `libraryId`: the resolved (or user-supplied) library ID
|
- `libraryId`: the resolved (or user-supplied) library ID
|
||||||
- `query`: the exact task/question you are answering
|
- `query`: the exact task/question you are answering
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user