Get Context#
Retrieve documentation context for a specific library. Returns documentation as a JSON array of documentation snippets (default) or as plain text.
Arguments#
The user's question or task (used for relevance ranking)
The library ID (e.g., /facebook/react)
Show propertiesHide properties
Format of the response
json: Array of Documentation objects (default)txt: Plain text format
Default: "json"
Abort signal for cancelling this request.
Per-request timeout in milliseconds. Use false to disable the client timeout.
Native fetch cache mode. Use false to omit the cache option.
Response#
The response type depends on the type option.
JSON Format (type: "json" or default)#
Returns Documentation[] - an array of documentation objects.
Text Format (type: "txt")#
Returns a string containing the documentation context ready to use in LLM prompts.