Fetch specific library documentation via ID
Retrieves detailed documentation snippets for a specific library identified by its unique Context7 ID.
How it works
Read-onlySoftware development
The agent first identifies the correct library ID if not provided, or uses a known ID. It then calls the 'Get Context' endpoint (mapped to GET /api/v2/context) using the library ID and a specific query. The agent extracts the returned code and info snippets to answer the user's technical question about that specific library.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Fetch specific library documentation via ID
Get the documentation for the React library regarding how to use the useState hook. Return the code examples.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Use Search Library followed by Get Context when your application needs to inspect or choose a specific documentation source.API Guide - Context7 MCP