UNPKG

ai-debug-local-mcp

Version:

🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh

193 lines • 7 kB
/** * Enhanced Debug Tools * * New debugging tools for console capture and visual validation */ export const enhancedDebugTools = [ { name: 'start_console_capture', description: 'Start enhanced console capture with detailed JavaScript error tracking', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'The debug session ID' } }, required: ['sessionId'] } }, { name: 'stop_console_capture', description: 'Stop console capture and get summary', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'The debug session ID' } }, required: ['sessionId'] } }, { name: 'get_console_analysis', description: 'Get detailed analysis of captured console logs including errors, warnings, and recommendations', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'The debug session ID' }, format: { type: 'string', enum: ['markdown', 'json', 'text'], description: 'Output format', default: 'markdown' }, includeFullReport: { type: 'boolean', description: 'Include full detailed report', default: true } }, required: ['sessionId'] } }, { name: 'validate_component', description: 'Validate that a UI component is properly rendered with visibility, layout, and interaction checks', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'The debug session ID' }, selector: { type: 'string', description: 'CSS selector for the component to validate' }, options: { type: 'object', properties: { checkVisibility: { type: 'boolean', description: 'Check if component is visible', default: true }, checkInteractivity: { type: 'boolean', description: 'Check for interactive elements' }, checkLayout: { type: 'boolean', description: 'Check for layout issues' }, expectedDimensions: { type: 'object', properties: { minWidth: { type: 'number', description: 'Minimum expected width in pixels' }, minHeight: { type: 'number', description: 'Minimum expected height in pixels' } } }, timeout: { type: 'number', description: 'Timeout in milliseconds', default: 10000 } } } }, required: ['sessionId', 'selector'] } }, { name: 'validate_map', description: 'Validate Google Maps or similar map components including tiles, markers, and API key status', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'The debug session ID' }, selector: { type: 'string', description: 'CSS selector for the map container', default: '[id*="map"], .map-container, #map' }, options: { type: 'object', properties: { checkMarkers: { type: 'boolean', description: 'Check if map has markers' }, expectedMarkerCount: { type: 'number', description: 'Expected number of markers' }, checkApiKey: { type: 'boolean', description: 'Check API key status' }, timeout: { type: 'number', description: 'Timeout in milliseconds', default: 10000 } } } }, required: ['sessionId'] } }, { name: 'visual_regression', description: 'Perform visual regression testing by comparing current state with baseline image', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'The debug session ID' }, selector: { type: 'string', description: 'CSS selector for the element to test' }, baselineImage: { type: 'string', description: 'Base64 encoded baseline image to compare against' }, options: { type: 'object', properties: { threshold: { type: 'number', description: 'Percentage difference allowed (0-100)', default: 5 }, highlightDifferences: { type: 'boolean', description: 'Generate diff image with highlighted differences', default: true } } } }, required: ['sessionId', 'selector'] } } ]; //# sourceMappingURL=enhanced-debug-tools.js.map