587 B
587 B
description, argument-hint
| description | argument-hint |
|---|---|
| Fetch Context7 documentation for a library | <library> <question> |
Look up documentation for $1 using Context7.
- Call the
resolve-library-idtool withlibraryName="$1"andquery="${@:2}"to find the best matching library. - Call the
query-docstool with the selected library ID andquery="${@:2}". - Summarize the answer for the user with code examples from the returned snippets. Cite the Context7 library ID you used.
If $1 is already in /org/project or /org/project/version format, skip step 1 and call query-docs directly.