• LOGS
  • ANALYSIS
  • REPORTS
  • HUMAN

How to debug failed test sessions with your agent

Connect BrowserStack to your agent to pull logs and session data without leaving your code editor. Once connected, your agent handles the heavy lifting of log retrieval and error identification.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I debug BrowserStack failures in my IDE?

Your agent uses the BrowserStack MCP to fetch specific session data and raw execution logs. It then analyzes those logs to pinpoint the exact cause of a failure. You get a clear explanation of the error right in your chat window.

Debugging outcomes

Where your debugging data lands.

Your agent organizes the raw data from your failed runs into actionable insights.

LOGS

Raw log retrieval

Your agent pulls the exact text from the failed session. You get the raw output needed to see what actually happened on the browser.

ANALYSIS

Error identification

Your agent scans the logs for stack traces or timeout messages. It identifies the specific line or condition that caused the crash.

REPORTS

Summary of failures

Your agent compiles the findings into a concise summary. This helps you understand if the issue is a flaky test or a real bug.

HUMAN

Manual fix required

Your agent points out the broken code or configuration. You decide how to patch the test or the application logic.

The workflow

What your agent does when a test fails.

Instead of hunting through the BrowserStack dashboard, you let your agent pull the data for you.

  1. Locate the session

    Your agent identifies the specific failed run you are asking about.

    get_session
  2. Fetch execution logs

    Your agent pulls the raw text logs from that specific session to see the error details.

    get_session_logs
  3. Parse error data

    Your agent reads through the log files to find stack traces and error messages.

    get_session_logs
  4. Report the cause

    Your agent explains why the test failed based on the retrieved log data.

    get_session_logs

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute BrowserStack tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to kick off the debugging process.

Starting points

Replace the session IDs and names with your actual BrowserStack data.

BrowserStack Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_QfMSmaBJhbb00bXFG15oIucKmIgIGaxUOK4qcRpA/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, BrowserStack capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "browserstack-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_QfMSmaBJhbb00bXFG15oIucKmIgIGaxUOK4qcRpA/mcp"
    }
  }
}
Copy into chat04
  • 01

    Get the logs for BrowserStack session 12345 and tell me why it failed.

  • 02

    Look at the logs from session 98765 and find the stack trace.

  • 03

    Pull the execution logs for my latest failed session and summarize the errors.

  • 04

    Check session 55443 to see if the failure was a timeout or a logic error.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect BrowserStack once, then ask.

One connection links your BrowserStack account to your agent. Your credentials stay encrypted, and you can start debugging immediately.

Connect BrowserStack to your agent

FAQ

How this task behaves.

  • 01

    Can your agent fix the code in my repository automatically?

    No. Your agent identifies the error in the logs, but you must manually apply the fix to your code.

  • 02

    Can your agent start a new test session in BrowserStack?

    No. This MCP is designed to read existing session data and logs, not to trigger new test runs.

  • 03

    Does your agent see my entire BrowserStack account?

    Your agent only accesses the specific session data you request through the tools.

  • 04

    Can your agent download the video recording of the session?

    No. The current tools only allow your agent to access text-based execution logs.

  • 05

    Do I need to keep the BrowserStack dashboard open?

    No. Once the MCP is connected, your agent pulls the data directly.

  • More questions about BrowserStack? The Connector page answers them. See everything the BrowserStack Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from BrowserStack to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    BrowserStack plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect BrowserStack to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.