list_test_results
Retrieve all accessibility test result files to review WCAG compliance reports, violation summaries, and remediation guidance from comprehensive website audits.
Instructions
List all available accessibility test result files
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/mcpServer.ts:237-261 (handler)The main handler function for the 'list_test_results' MCP tool. It calls fileManager.listTestResults() to get the list of files and formats a numbered list as the tool response.private async handleListTestResults(): Promise<CallToolResult> { const files = await this.fileManager.listTestResults(); if (files.length === 0) { return { content: [ { type: 'text', text: 'No accessibility test results found.' } ] }; } const fileList = files.map((file, index) => `${index + 1}. ${file}`).join('\n'); return { content: [ { type: 'text', text: `Available test result files:\n\n${fileList}` } ] }; }
- src/server/mcpServer.ts:95-103 (registration)Registration of the 'list_test_results' tool in the ListToolsRequestSchema response, including name, description, and input schema.{ name: 'list_test_results', description: 'List all available accessibility test result files', inputSchema: { type: 'object', properties: {}, additionalProperties: false } }
- src/server/mcpServer.ts:98-102 (schema)Input schema for the list_test_results tool, defining no required parameters.inputSchema: { type: 'object', properties: {}, additionalProperties: false }
- src/utils/fileOutput.ts:154-162 (helper)Helper method in FileOutputManager that lists test result files by reading the output directory and filtering by filename pattern.async listTestResults(): Promise<string[]> { try { const files = await fs.readdir(this.outputDir); return files.filter(file => file.startsWith('accessibility-test-') && file.endsWith('.txt')); } catch (error) { console.error('Failed to list test results:', error); return []; } }