visual-ui-debug-agent-mcp

v1.1.0
visual-ui-debug-agent-mcp Checked 5 days ago Published 3 months ago

Visual UI testing and debugging tools for MCP clients, powered by Playwright

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

enhanced_page_analyzer

Analyze a page with screenshots, console logs, interactive element mapping, and performance metrics

ParameterTypeDescription
url *stringURL to analyze (e.g., http://localhost:4999, https://example.com)
devicestringOptional device to emulate (e.g., "iPhone 13", "Pixel 5")
fullPagebooleanWhether to capture full page or just viewport. Default: false
includeConsolebooleanWhether to include console logs. Default: true
mapElementsbooleanWhether to map interactive elements. Default: true
waitForSelectorstringOptional CSS selector to wait for before analysis

api_endpoint_tester

Test multiple API endpoints and verify responses

ParameterTypeDescription
endpoints *arrayList of endpoints to test
url *stringBase URL of the API (e.g., http://localhost:5000/api)
authTokenstringOptional auth token to include in all requests

navigation_flow_validator

Test a sequence of user actions across multiple pages

ParameterTypeDescription
startUrl *stringURL to start the navigation flow from
steps *arraySequence of steps to perform
captureScreenshotsbooleanWhether to capture screenshots after each step. Default: true
devicestringOptional device to emulate (e.g., "iPhone 13", "Pixel 5")
includeConsolebooleanWhether to include console logs. Default: true

screenshot_url

Take a screenshot of a URL

ParameterTypeDescription
url *stringURL to capture a screenshot of
devicestringOptional device to emulate (e.g., "iPhone 13", "Pixel 5")
fullPagebooleanWhether to capture full page or just viewport. Default: false
selectorstringOptional CSS selector to screenshot only that element
waitForSelectorstringOptional CSS selector to wait for before taking screenshot

dom_inspector

Inspect DOM elements and their properties

ParameterTypeDescription
selector *stringCSS selector to inspect
url *stringURL to inspect
includeChildrenbooleanWhether to include children elements. Default: false
includeStylesbooleanWhether to include computed styles. Default: true

batch_screenshot_urls

Capture screenshots of multiple URLs in a grid layout for easy comparison

ParameterTypeDescription
urls *arrayArray of URLs to capture screenshots of
devicestringOptional device to emulate (e.g., "iPhone 13", "Pixel 5")
fullPagebooleanWhether to capture full page or just viewport. Default: false
gridSizenumberNumber of screenshots per row in the grid layout. Default: 2

console_monitor

Monitor console logs on a page

ParameterTypeDescription
url *stringURL to monitor console logs from
durationnumberHow long to monitor in milliseconds. Default: 5000 (configurable via VUDA_STABILITY_WAIT)
filterTypesarrayTypes of console messages to capture
interactionSelectorstringOptional element to click before monitoring

performance_analysis

Analyze page performance metrics

ParameterTypeDescription
url *stringURL to analyze performance for
devicestringOptional device to emulate (e.g., "iPhone 13", "Pixel 5")
iterationsnumberNumber of test iterations to run. Default: 1
waitForNetworkIdlebooleanWhether to wait for network to be idle. Default: true

visual_comparison

Compare two URLs visually and highlight differences

ParameterTypeDescription
url1 *stringFirst URL to compare
url2 *stringSecond URL to compare
fullPagebooleanWhether to capture full page. Default: false
selectorstringOptional CSS selector to limit comparison
thresholdnumberDifference threshold (0.0-1.0). Default: 0.1

screenshot_local_files

Take screenshots of local HTML files in a directory

ParameterTypeDescription
directorystringDirectory containing HTML files to screenshot (defaults to current directory)
fullPagebooleanWhether to capture full page or just viewport. Default: false
gridSizenumberSize of grid (2 for 2x2, 4 for 4x4). Default: 2
patternstringGlob pattern to match HTML files (default: "*.html")

playwright_navigate

Navigate to a URL

ParameterTypeDescription
url *stringURL to navigate to
timeoutnumberNavigation timeout in milliseconds
waitUntilstringNavigation wait condition

playwright_click

Click an element on the page

ParameterTypeDescription
selector *stringCSS selector for the element to click

playwright_iframe_click

Click an element in an iframe on the page

ParameterTypeDescription
iframeSelector *stringCSS selector for the iframe containing the element to click
selector *stringCSS selector for the element to click within the iframe

playwright_fill

Fill out an input field

ParameterTypeDescription
selector *stringCSS selector for input field
value *stringValue to fill

playwright_select

Select an option in a dropdown

ParameterTypeDescription
selector *stringCSS selector for the select element
value *stringValue or label of the option to select

playwright_hover

Hover over an element on the page

ParameterTypeDescription
selector *stringCSS selector for element to hover

playwright_evaluate

Execute JavaScript in the browser console context

ParameterTypeDescription
script *stringJavaScript code to execute

playwright_console_logs

Retrieve console logs captured so far

ParameterTypeDescription
clearbooleanWhether to clear logs after retrieval
limitnumberMaximum number of logs to return
typestringType of logs to retrieve

playwright_get_visible_text

Get the visible text content of the current page

playwright_get_visible_html

Get the HTML content of the current page

playwright_go_back

Navigate back in browser history

playwright_go_forward

Navigate forward in browser history

playwright_press_key

Press a keyboard key (optionally focusing an element first)

ParameterTypeDescription
key *stringKey to press (e.g. 'Enter', 'ArrowDown', 'a')
selectorstringOptional CSS selector to focus before pressing key

playwright_drag

Drag an element to a target location

ParameterTypeDescription
sourceSelector *stringCSS selector for the element to drag
targetSelector *stringCSS selector for the target location

playwright_screenshot

Take a screenshot of the current page or a specific element

ParameterTypeDescription
name *stringName for the screenshot resource (will be used in the URI)
fullPagebooleanStore screenshot of the entire page (default: false)
selectorstringOptional CSS selector for element to screenshot

ui_workflow_validator

Execute and validate a sequence of UI interactions simulating a user workflow.

ParameterTypeDescription
startUrl *stringInitial URL for the workflow
steps *arraySequence of steps representing the user workflow (minimum 1 step)
taskDescription *stringHigh-level description of the user task being simulated
captureScreenshotsstringWhen to capture screenshots (default: failure)
devicestringOptional device to emulate (e.g., 'iPhone 13', 'Pixel 5')

tunnel_helper

Guide user to expose local ports via Cloudflare tunnel or manage tunnel URLs

ParameterTypeDescription
action *stringAction: guide (show instructions), store (save tunnel URL), retrieve (get saved URL)
localPort *numberLocal port number to expose (e.g., 3000, 8080)
tunnelUrlstringTunnel URL to store (only for store action)

debug_memory

Save and retrieve debugging context including .env variables, selectors, and issues

ParameterTypeDescription
action *stringMemory action to perform
categorystringCategory of memory item
keystringMemory key for save/retrieve operations
valueobjectValue to save (for save action)

sitemap_crawler

Crawl a website recursively to generate a comprehensive sitemap with all endpoints, links, and visible text content. Perfect for detecting inconsistent content, broken links, and navigation issues.

ParameterTypeDescription
url *stringStarting URL to crawl (e.g., http://localhost:3000, https://example.com)
includeTextbooleanInclude visible text content from each page (default: true)
maxDepthnumberMaximum depth to crawl (default: 3)
outputFormatstringOutput format for the sitemap (default: markdown)
sameDomainOnlybooleanOnly crawl links from the same domain (default: true)