Skip to main content
Glama

Docfork

Official

get-library-docs

Fetch up-to-date documentation and code examples for libraries by providing an author/library name and a specific topic. Retrieves relevant sections and explanations for focused learning and implementation.

Instructions

Retrieves up-to-date documentation and code examples for any library. This tool automatically searches for the library by name and fetches its documentation.

Usage:

  1. Provide the author and library name pair (e.g., "vercel/next.js", "shadcn-ui/ui", "vuejs/docs")
  2. Specify a topic to focus the documentation on (e.g., "dynamic", "routing", "authentication")

The tool will:

  1. Automatically find and select the most relevant library based on the provided name
  2. Fetch comprehensive documentation for the selected library
  3. Return relevant sections focused on the specified topic

Response includes:

  • Library selection explanation
  • Comprehensive documentation with code examples
  • Focused content if a topic was specified

Input Schema

NameRequiredDescriptionDefault
libraryNameYesAuthor and library name pair to search for and retrieve documentation (e.g., 'vercel/next.js', 'reactjs/react.dev', 'vuejs/docs')
tokensNoMaximum number of tokens of documentation to retrieve (default: 15000). Higher values provide more context but consume more tokens.
topicYesTopic to focus documentation on (e.g., 'hooks', 'routing', 'authentication')

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "libraryName": { "description": "Author and library name pair to search for and retrieve documentation (e.g., 'vercel/next.js', 'reactjs/react.dev', 'vuejs/docs')", "type": "string" }, "tokens": { "description": "Maximum number of tokens of documentation to retrieve (default: 15000). Higher values provide more context but consume more tokens.", "type": "number" }, "topic": { "description": "Topic to focus documentation on (e.g., 'hooks', 'routing', 'authentication')", "type": "string" } }, "required": [ "libraryName", "topic" ], "type": "object" }
Install Server

Other Tools from Docfork

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/docfork/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server