Skip to content

resolve-library ​

Find library IDs for documentation queries by searching the library name.

Example Prompts ​

You typically don't need to ask for this tool directly - it's called automatically when you ask documentation questions. But if you want to explore what's available:

"What documentation do you have indexed for TanStack?"

"Is Hono documentation available in Nexus?"

"Find the library ID for Drizzle ORM"

Usage ​

Tool: resolve-library
Parameters:
  - libraryName (required): The name of the library to search for
  - query (optional): The task you need help with, used to rank results

Example ​

Input:

json
{
  "libraryName": "react",
  "query": "hooks and state management"
}

Output:

json
{
  "libraries": [
    {
      "id": "react",
      "name": "React",
      "description": "A JavaScript library for building user interfaces",
      "snippets": 2341
    }
  ]
}

Parameters ​

ParameterTypeRequiredDescription
libraryNamestringYesThe name of the library to search for
querystringNoYour task or question, used to rank results by relevance

Returns ​

An array of matching libraries with:

  • id - The library ID to use with query-docs
  • name - Display name of the library
  • description - Short description
  • snippets - Number of indexed code snippets

Tips ​

  • Search by common name: "react", "nextjs", "prisma"
  • Include version if needed: "react-18", "next-14"
  • Use the query parameter for better ranking

Released under the MIT License.