search_native_criteria
Search platform-specific accessibility criteria for iOS VoiceOver and Android TalkBack to find implementation details for native mobile components.
Instructions
Search native accessibility criteria using keywords. Find platform-specific implementation details for iOS (VoiceOver) and Android (TalkBack).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search term or phrase (e.g., "voiceover", "talkback", "accessibility label") | |
| max_results | No | Maximum number of results to return (default: 10) |
Implementation Reference
- src/index.ts:224-236 (handler)Primary handler function that executes the search_native_criteria tool logic by invoking contentLoader.search on native platform criteria.async function handleSearchNativeCriteria(args: any) { const maxResults = args?.max_results || 10; const results = await contentLoader.search('native', args.query, maxResults); return { content: [ { type: 'text', text: JSON.stringify(results, null, 2), }, ], }; }
- src/tool-definitions.ts:92-110 (schema)Input schema, description, and tool definition used for registration and validation of search_native_criteria.{ name: 'search_native_criteria', description: 'Search native accessibility criteria using keywords. Find platform-specific implementation details for iOS (VoiceOver) and Android (TalkBack).', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'Search term or phrase (e.g., "voiceover", "talkback", "accessibility label")', }, max_results: { type: 'number', description: 'Maximum number of results to return (default: 10)', default: 10, }, }, required: ['query'], }, },
- netlify/functions/api.js:48-51 (handler)Inline handler for search_native_criteria in the Netlify HTTP serverless function.case 'search_native_criteria': { const results = await contentLoader.search('native', args.query, args.max_results || 10); return { content: [{ type: 'text', text: JSON.stringify(results, null, 2) }] }; }
- src/index.ts:60-61 (registration)Switch case registration that routes tool calls to the search_native_criteria handler in the MCP stdio server.case 'search_native_criteria': return await handleSearchNativeCriteria(args);