get_component_condensed
Retrieve focused accessibility testing instructions for web or native UI components to verify compliance with accessibility standards.
Instructions
Get condensed acceptance criteria for a component. These are shorter, more focused testing instructions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Platform (web or native) | |
| component | Yes | Component name (e.g., "button", "checkbox") |
Implementation Reference
- src/index.ts:278-312 (handler)Primary MCP tool handler for 'get_component_condensed'. Fetches condensed acceptance criteria content via ContentLoader, with error handling providing suggestions and available formats.async function handleGetComponentCondensed(args: any) { try { const content = await contentLoader.getComponentContent(args.platform, args.component, 'condensed'); return { content: [ { type: 'text', text: content, }, ], }; } catch (error: any) { const suggestions = contentLoader.getSimilarComponents(args.platform, args.component); const formats = contentLoader.getAvailableFormats(args.platform, args.component); return { content: [ { type: 'text', text: JSON.stringify( { error: error.message, component: args.component, suggestions, availableFormats: formats, }, null, 2 ), }, ], isError: true, }; } }
- src/tool-definitions.ts:131-149 (schema)Tool schema definition including name, description, and input schema requiring 'platform' (web/native) and 'component'.{ name: 'get_component_condensed', description: 'Get condensed acceptance criteria for a component. These are shorter, more focused testing instructions.', inputSchema: { type: 'object', properties: { platform: { type: 'string', enum: ['web', 'native'], description: 'Platform (web or native)', }, component: { type: 'string', description: 'Component name (e.g., "button", "checkbox")', }, }, required: ['platform', 'component'], }, },
- src/index.ts:64-65 (registration)Tool registration/dispatch in the MCP CallToolRequestSchema switch statement.case 'get_component_condensed': return await handleGetComponentCondensed(args);
- netlify/functions/api.js:56-59 (handler)Handler implementation for 'get_component_condensed' in the Netlify HTTP serverless function deployment.case 'get_component_condensed': { const content = await contentLoader.getComponentContent(args.platform, args.component, 'condensed'); return { content: [{ type: 'text', text: content }] }; }
- netlify/functions/api.js:56-59 (registration)Tool dispatch/registration in Netlify handleToolCall switch (inline handler).case 'get_component_condensed': { const content = await contentLoader.getComponentContent(args.platform, args.component, 'condensed'); return { content: [{ type: 'text', text: content }] }; }