• TRACE
  • ERROR
  • INPUT
  • HUMAN

How to debug failed agent runs with your agent

Connect LangSmith to your agent to inspect execution traces. Once connected, your agent can pull specific run data to find where your logic broke.

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 use my AI to find out why an agent run failed?

Your agent uses LangSmith to fetch specific error traces and execution details. It identifies the exact step where the workflow failed, providing you with the context needed to fix it.

Debugging outcomes.

Where your investigation leads.

Your agent categorizes the data it finds into clear outcomes.

TRACE

Full execution paths

Your agent pulls the sequence of events for a run. You see exactly which tools were called and what they returned.

ERROR

Root cause identification

Your agent isolates the specific error message. You get the exact reason the execution stopped.

INPUT

Data validation

Your agent checks the inputs sent to each step. You find where malformed data caused a failure.

HUMAN

Manual fixes needed

Your agent flags runs that require you to change your prompts or tool logic. These stay in your hands to resolve.

The workflow

What your agent does when a run fails.

Your agent acts as a forensic tool for your LangSmith data.

  1. Locate the failure

    Your agent scans your recent history to find the specific failed execution you're asking about.

    langsmith_list_runs
  2. Retrieve the trace

    Your agent pulls the granular details and metadata for that specific failed run.

    langsmith_get_run
  3. Analyze the error

    Your agent compares the expected output against the actual error returned by the system.

    langsmith_get_run
  4. Summarize the fix

    Your agent explains why the run failed and suggests how to adjust your agent's logic.

    langsmith_get_run

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 LangSmith 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 begin your investigation.

Starting points

Swap the bracketed text with your actual run IDs or error descriptions.

LangSmith Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_JBueIzhraYvzf2S9aR0UP9Q6bjldfIBgmwxTvRHt/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, LangSmith capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "langsmith-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_JBueIzhraYvzf2S9aR0UP9Q6bjldfIBgmwxTvRHt/mcp"
    }
  }
}
Copy into chat04
  • 01

    Find the last failed run in LangSmith and tell me why it crashed.

  • 02

    Get the details for run ID 'run_123abc' and explain the error in the tool call.

  • 03

    List all failed runs from the last hour so I can see the pattern.

  • 04

    Look at the trace for run 'run_456def' and tell me what the input was for the final step.

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

Start here

Connect LangSmith once, then ask.

Provide your LangSmith API key to get started. Your credentials stay encrypted, and the full walkthrough lives on the Connector page.

Connect LangSmith to your agent

FAQ

How this task behaves.

  • 01

    Can your agent fix my code automatically?

    No. Your agent identifies the error and suggests a fix, but you must manually update your code.

  • 02

    Can your agent delete runs from LangSmith?

    No. This MCP only has permissions to read and list run data.

  • 03

    How does your agent find the right run to debug?

    It uses the list tool to scan your history and then pulls the specific trace you've identified.

  • 04

    Can your agent create new traces in LangSmith?

    No. Your agent is strictly for inspecting and analyzing existing execution data.

  • 05

    Does your agent see my entire LangSmith project?

    Your agent can access any run it has permission to list and retrieve based on your API key.

  • More questions about LangSmith? The Connector page answers them. See everything the LangSmith 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 LangSmith 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.

    LangSmith 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 LangSmith 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.