langsmith-fetch

Fetch and analyze LangSmith Studio execution traces to debug LangChain and LangGraph agents.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/amano--/call-center --skill langsmith-fetch-amano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-fetch
Source: https://github.com/amano--/call-center/tree/main/.agent/skills/ai-tools/langsmith-fetch
Command: npx skills add https://github.com/amano--/call-center --skill langsmith-fetch-amano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers debug LangChain and LangGraph agents by fetching and analyzing execution traces directly from LangSmith Studio, streamlining the process of identifying and resolving issues.

Core Features & Use Cases

  • Fetch Recent Traces: Quickly review the last few agent runs to understand recent behavior.
  • Deep Dive Specific Traces: Investigate individual trace IDs for detailed error analysis and root cause identification.
  • Export Sessions: Save traces and threads for offline analysis, sharing, or archival.
  • Error Detection: Automatically identify and report on errors and failures within a given timeframe.
  • Use Case: When an agent behaves unexpectedly, use this skill to fetch the last 5 minutes of traces, identify any errors, and pinpoint the exact tool call that failed.

Quick Start

Use the langsmith-fetch skill to debug your agent by fetching the last 5 minutes of traces.

Frequently Asked Questions about langsmith-fetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a LangChain agent that is behaving unexpectedly?

Debug a LangChain agent by fetching recent execution traces from LangSmith Studio to review agent behavior and pinpoint exact tool call failures. You can retrieve the last few minutes of runs to identify the root cause of unexpected errors.

How do I investigate specific LangGraph traces for error analysis?

Investigate specific LangGraph traces by fetching individual trace IDs from LangSmith Studio to perform deep error analysis. This allows you to examine specific tool calls, review memory operations, and identify the root cause of failures within your agent execution.

Can I export LangSmith sessions for offline analysis and sharing?

Yes, you can export LangSmith sessions to save traces and threads for offline analysis, sharing, or archival. This facilitates investigating agent behavior outside the Studio environment and preserving execution history.

What do I need to fetch LangSmith traces for performance assessment?

Fetching LangSmith traces for performance assessment requires the langsmith-fetch CLI and configured environment variables for API access. This setup enables you to review agent runs and assess execution performance.

How does automatic error detection work for LangChain agent runs?

Automatic error detection for LangChain agent runs works by fetching execution traces within a given timeframe from LangSmith to identify and report failures. This streamlines finding the exact tool call that caused an error.