Get Context
Retrieve documentation context for a specific library. Returns documentation as a JSON array of documentation snippets (default) or as plain text.Arguments
string
required
The user’s question or task (used for relevance ranking)
string
required
The library ID (e.g.,
/facebook/react)GetContextOptions
Response
The response type depends on thetype 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.
object