get_llms_context
Retrieve Better Auth LLMs.txt content to access comprehensive authentication framework documentation and configuration details for development.
Instructions
Get Better Auth LLMs.txt content for comprehensive context
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:534-546 (handler)The handler function that implements the core logic of the 'get_llms_context' tool. It fetches the LLMs.txt file from Better Auth documentation site using axios and returns the content wrapped in a standardized response format.private async handleGetLlmsContext() { try { const response = await this.axiosInstance.get(`${this.BETTER_AUTH_DOCS_URL}/llms.txt`); return this.createSuccessResponse({ source: "https://www.better-auth.com/llms.txt", content: response.data, lastUpdated: new Date().toISOString(), }); } catch (error) { this.handleAxiosError(error, "Failed to fetch Better Auth LLMs context"); } }
- src/index.ts:209-217 (registration)Registration of the 'get_llms_context' tool in the list of available tools, including its name, description, and input schema (which is empty as the tool takes no parameters).{ name: "get_llms_context", description: "Get Better Auth LLMs.txt content for comprehensive context", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/index.ts:233-234 (registration)Dispatch case in the CallToolRequestSchema handler that routes calls to the 'get_llms_context' tool to its handler function.case "get_llms_context": return await this.handleGetLlmsContext();
- src/index.ts:212-216 (schema)The input schema for the tool, defining it as an empty object with no required properties.inputSchema: { type: "object", properties: {}, required: [], },