search_docs
Search documentation for a library or package by query, optionally limiting results to a specific version or version range.
Instructions
Search up-to-date documentation for a library or package. Examples:
{library: "react", query: "hooks lifecycle"} -> matches latest version of React
{library: "react", version: "18.0.0", query: "hooks lifecycle"} -> matches React 18.0.0 or earlier
{library: "typescript", version: "5.x", query: "ReturnType example"} -> any TypeScript 5.x.x version
{library: "typescript", version: "5.2.x", query: "ReturnType example"} -> any TypeScript 5.2.x version
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": "<library>",
"query": "<query>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results. | |
| query | Yes | Documentation search query. | |
| library | Yes | Library name. | |
| version | No | Library version (exact or X-Range, optional). |