Skip to main content
Glama
nfodor

Chromium ARM64 Browser

by nfodor

run_accessibility_audit

Audit web page accessibility to identify and fix compliance issues for users with disabilities, ensuring inclusive digital experiences.

Instructions

Run an accessibility audit on the current page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that runs an accessibility audit by injecting JavaScript into the browser to check for images without alt text, inputs without labels, and presence of headings.
    async runAccessibilityAudit() { await this.ensureChromium(); const result = await this.sendCDPCommand('Runtime.evaluate', { expression: ` const results = []; const imagesWithoutAlt = Array.from(document.querySelectorAll('img:not([alt])')).length; if (imagesWithoutAlt > 0) { results.push(\`Found \${imagesWithoutAlt} images without alt text\`); } const inputsWithoutLabels = Array.from(document.querySelectorAll('input:not([aria-label]):not([id])')).length; if (inputsWithoutLabels > 0) { results.push(\`Found \${inputsWithoutLabels} inputs without proper labels\`); } const headings = Array.from(document.querySelectorAll('h1, h2, h3, h4, h5, h6')); if (headings.length === 0) { results.push('No heading structure found on page'); } JSON.stringify(results.length > 0 ? results : ['Basic accessibility checks passed']); `, returnByValue: true }); const auditResults = JSON.parse(result.result?.value || '[]'); return { content: [{ type: 'text', text: `Accessibility Audit Results:\\n${auditResults.join('\\n')}` }], }; }
  • index.js:279-286 (registration)
    Tool registration in the ListToolsRequestSchema response, defining the tool name, description, and empty input schema (no parameters required).
    { name: 'run_accessibility_audit', description: 'Run an accessibility audit on the current page', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for the tool, which accepts an empty object (no required parameters).
    inputSchema: { type: 'object', properties: {}, },
  • index.js:379-380 (registration)
    Dispatcher case in the CallToolRequestSchema handler that routes calls to the runAccessibilityAudit method.
    case 'run_accessibility_audit': return await this.runAccessibilityAudit();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nfodor/mcp-chromium-arm64'

If you have feedback or need assistance with the MCP directory API, please join our Discord server