search_library_name
Identify the exact library name and official documentation source before writing third-party code. Ensures accurate, up-to-date API usage and prevents hallucinations.
Instructions
CRITICAL: Always use this tool FIRST before generating code for any third-party library.
This tool identifies the correct library version and official documentation source. Using this prevents hallucinations and ensures you use the most up-to-date APIs.
Usage Strategy:
Call this tool to find the exact library name (e.g., mapping "langchain" to the specific package).
Use the result from this tool to call 'search_latest_documentation'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"library_name": "<library_name>",
"query": "<query>"
},
"name": "search_library_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Specific requirements or version constraints (e.g., "v2 with server actions", "latest stable"). | |
| library_name | Yes | The general name of the library (e.g., "langchain", "pydantic", "nextjs"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |