Context7 Platform -- Up-to-date docs for AI agents
description: Fetch Context7 documentation for a library argument-hint:
Look up documentation for $1 using Context7.
- Determine what to look up in the library's documentation from
${@:2}. - Call the
resolve-library-idtool withlibraryName="$1"and what to look up asqueryto find the best matching library. - Call the
query-docstool with the selected library ID and what to look up asquery. - 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 library resolution and call query-docs directly.