- LOGS
- VISUAL
- SUMMARY
- HUMAN
Short answer
How can I debug failed tests using my AI?
Your agent pulls error logs and screenshots from Perfecto to show you exactly what went wrong. You get the root cause without having to navigate the web dashboard. This breakdown shows you how it works.
Debugging outcomes
Where your data lands.
The AI organizes Perfecto data into these four outcomes.
LOGS
Error analysis
The agent grabs the specific failure logs. You get the stack trace or error message needed to fix the code.
VISUAL
Visual evidence
Your AI pulls screenshots from the execution. You see the application state at the moment of failure.
SUMMARY
Run overview
The agent reads the execution summary. You get a quick count of passes and failures for the suite.
HUMAN
Manual triage
The AI flags issues that need a person. You decide if a failure is a real bug or just a flaky test.
The workflow
What your AI does when a test fails.
The agent handles the data retrieval so you can focus on the fix.
Fetch execution data
The agent looks up the specific details of a failed run to understand the context.
get_execution_detailsGather visual evidence
The agent finds and retrieves screenshots or video files attached to the run.
list_artifactsReview test results
The agent pulls the summary report to see the overall health of the test suite.
get_report_summaryIdentify the root cause
The agent combines logs and screenshots to explain why the test failed.
get_execution_detailslist_artifacts
Try it
Copy these to start.
Use these prompts to begin debugging immediately.
Starting points
Swap the bracketed text for your actual Perfecto execution IDs or test names.
Perfecto Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_qkMLVDlhWeRHbw49znraw9alYWakOJ9o2dj1pqaq/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Perfecto capabilities are ready to use.
{
"mcpServers": {
"perfecto-mcp": {
"url": "https://edge.vinkius.com/vk_preview_qkMLVDlhWeRHbw49znraw9alYWakOJ9o2dj1pqaq/mcp"
}
}
}Show me the failure logs for execution ID 55432.
Get the screenshots for the last failed test in the 'Checkout Flow' suite.
Summarize the results for the most recent Perfecto test run.
Look at the artifacts for execution 8821 and tell me why the button click failed.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Perfecto once, then ask.
You only need to link your account once. Your credentials stay encrypted, and you can start asking questions in your preferred AI client immediately.
Connect Perfecto to your AIFAQ
How this task behaves
- 01
Can my AI fix the code for me?
No. The AI only pulls logs and screenshots from Perfecto to help you understand the failure. You must perform the actual code changes.
- 02
Does the AI delete any test results in Perfecto?
No. The AI only has read access to execution details, artifacts, and summaries. It cannot modify or delete anything in your Perfecto account.
- 03
Can I see the screenshots directly in my AI chat?
Yes. When the agent uses the tool to list artifacts, it can provide the links or data needed to view the visual evidence of a failure.
- 04
Can the AI run new tests in Perfecto?
No. This specific setup is for reading existing execution data. It cannot trigger or start new test runs.
- 05
How does the AI know which test failed?
You tell the AI which execution ID or test suite to look at, and it uses the available tools to fetch that specific data.
More questions about Perfecto? See everything the Perfecto Connector can do
Connect Perfecto to Claude, Cursor, ChatGPT & more
