Debug tests with AI
After you connect the Endform MCP server, your coding agent can pause inside one Playwright test on Endform’s remote infrastructure. It can inspect the accessibility tree, run JavaScript with access to fixtures such as page, interact with the browser, and collect screenshots while the test remains paused.
Start from your project directory and identify the test you want to debug as precisely as possible. A test file and title are usually enough; add the Playwright project when the same test runs in multiple projects.
Example conversation Why does this button never become enabled?
Tool call:
debug_test_start checkout test by file and title, paused before the failing assertion Tool call:
debug_test_run inspect the Pay now button and visible form state Tool call:
debug_test_run read saved-card requests and client-side errors Tool call:
debug_test_run capture a screenshot of the paused checkout Tool call:
debug_test_stop clean up the completed debug session Example conversation Why can Playwright see two matching dialogs?
Tool call:
debug_test_start settings test declaration, paused at source line 84 Tool call:
debug_test_run list every dialog with visibility and ARIA details Tool call:
debug_test_run inspect the duplicate dialog's DOM ancestry Tool call:
debug_test_stop clean up the completed debug session Example conversation Why does this fail only in WebKit?
Tool call:
debug_test_start profile-menu test in the WebKit project Tool call:
debug_test_run open the menu and inspect its accessible items Tool call:
debug_test_run compare focus and element geometry after the click Tool call:
debug_test_run try the keyboard interaction used by the component Tool call:
debug_test_stop clean up the completed debug session Example conversation Check a proposed fix in the live session
Tool call:
debug_test_start account settings test paused before its save assertion Tool call:
debug_test_run perform the save and wait for the success toast Tool call:
debug_test_run verify the persisted value through the page UI Tool call:
debug_test_stop clean up the completed debug session Debug sessions select exactly one test and end automatically after 15 minutes. The agent should stop the session when it finishes. See the debugging tool reference for selection options and return values.