Files
claude-plugins-official/external_plugins/context7/commands/docs.md

29 lines
777 B
Markdown
Raw Normal View History

2025-12-24 08:57:31 +01:00
---
description: Fetch up-to-date documentation and code examples for any library
argument-hint: <library> [query]
2025-12-24 08:57:31 +01:00
---
# Context7 Documentation Lookup
Fetch current, version-specific documentation from source repositories.
2025-12-24 08:57:31 +01:00
## Arguments
`$ARGUMENTS` = `<library> [query]`
- First word: library name (or direct library ID starting with `/`)
- Remaining: your specific question or topic
2025-12-24 08:57:31 +01:00
Examples:
- `react hooks`
- `next.js authentication`
- `/vercel/next.js/v15.1.8 app router`
2025-12-24 08:57:31 +01:00
## Steps
1. Parse arguments: first word = library, remaining = query
2. If library starts with `/`, use it directly as library ID
3. Otherwise, call `resolve-library-id` with library name and query
4. Call `query-docs` with the library ID and query
5. Present documentation with code examples