get_documentation
Search for and retrieve documentation from LlamaIndex or LangChain. Enter a query and select the library to get relevant formatted pages.
Instructions
Search for and retrieve documentation from LlamaIndex or LangChain sites.
This tool searches for relevant documentation using Serper API and then scrapes
the content from the top results to provide comprehensive information.
Args:
query: Search query for documentation (e.g., "vector store", "chat models", "retrieval")
library: The library to search for ('llamaindex' or 'langchain')
max_results: Maximum number of documentation pages to retrieve (1-2, default 2)
Returns:
Formatted documentation content from the search results
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": {
"query": "<query>",
"library": "<library>"
},
"name": "get_documentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| library | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |