getDocumentation

Free

Retrieve up-to-date documentation snippets (code examples and explanations) for a library, ranked by relevance to a query. Use a libraryId from searchLibraries.

Try it

Open in playground
kirha tools run context7_getDocumentation \
  --input '{
    "libraryId": "/react/react",
    "query": "<query>"
  }'

Uses the key saved by kirha auth login.

  • libraryIdstring, required

    From searchLibraries, e.g., /react/react

  • querystring, required

    Specific question for documentation search

  • pagenumber, default 1, 1 to 10
  • topicstring

    Focus area, e.g., hooks, routing