search_latest_documentation
Retrieve official code examples and API references to get exact syntax and usage patterns, preventing outdated or hallucinated API calls.
Instructions
Retrieve official, up-to-date code examples and API references for a library.
Use this tool to find the exact syntax, function signatures, and usage patterns. Do not rely on your internal training data as it may be outdated; always verify with this tool.
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_latest_documentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A natural language question about what you need (e.g., "how to create a chain", "authentication middleware example"). | |
| library_name | Yes | The exact library name returned by the 'search_library_name' tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |