context7

Retrieve up-to-date library documentation via search and context endpoints.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/leto-labs/openclaw-bootstrap-config --skill context7-leto-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/leto-labs/openclaw-bootstrap-config/tree/main/.agents/skills/context7
Command: npx skills add https://github.com/leto-labs/openclaw-bootstrap-config --skill context7-leto-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieve up-to-date library documentation for software libraries and frameworks.

Core Features & Use Cases

  • Live documentation lookup: Fetch the latest API references, usage examples, and notes for libraries and frameworks.
  • Example discovery: Retrieve code samples and practical guidance for common APIs and topics.
  • Verification & comparison: Confirm correct usage patterns and compare API changes across versions.

Quick Start

Ask Context7 to fetch the latest documentation for a given library and topic.

Frequently Asked Questions about context7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch up-to-date library documentation for a specific software framework?

To fetch up-to-date library documentation, query the search endpoint with a library name to obtain a libraryId, then use the context endpoint with that libraryId and your topic query to retrieve relevant docs and code examples.

Can I retrieve code examples and API references for development workflows?

Yes, you can retrieve code examples and API references for development workflows by querying the context endpoint with a libraryId and a topic query, specifying the type parameter as 'txt' or 'json' to get practical guidance.

What is the best way to verify correct API usage patterns across library versions?

The best way to verify correct API usage patterns across versions is to fetch live library documentation through the context endpoint, allowing you to confirm current usage examples and compare recent API changes directly.

Does the documentation retrieval process require a specific library ID?

Yes, the documentation retrieval process requires a specific libraryId. You must first search by library name to retrieve this libraryId from the search endpoint before fetching documentation from the context endpoint.

What format options are available when retrieving library docs and examples?

When retrieving library docs and examples, the available format options are specified using the type parameter as either 'txt' or 'json', determining the structure of the returned API references and code samples.

How do I search for library documentation by topic and framework name?

You search for library documentation by providing the library name and topic to the search endpoint to obtain a libraryId, then passing the libraryId and topic query to the context endpoint to fetch relevant results.