Skip to main content
Glama

Docfork

by docfork
MIT License
206
54
  • Apple
  • Linux

get-library-docs

Fetch comprehensive documentation and code examples for any library by specifying its name and a relevant topic, enabling focused and accurate reference material directly in your workflow.

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/docfork-mcp'

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