ワークフロー実行履歴を一覧表示します。 次のような場合に使用: 失敗した実行を見つける、過去の実行を確認する、デバッグ(問題調査)のためにワークフローIDを特定する、ワークフロータイプで実行結果を絞り込む、最近のワークフロー活動を調査するなど。
List Output SDK workflow execution history. Use when finding failed runs, reviewing past executions, identifying workflow IDs for debugging, filtering runs by workflow type, or investigating recent workflow activity.
このスキルは、ワークフローの実行履歴を確認するために使用します。 失敗した実行の検索、デバッグ用のワークフローIDの特定、過去の実行内容のレビューなどに活用できます。
npx output workflow runs list
デフォルトでは、すべてのワークフロータイプを対象に、直近100件の実行が表示されます。
| フラグ | 説明 | デフォルト |
|---|---|---|
--limit <n> |
表示する実行件数 | 100 |
--format <type> |
出力形式: table(表), text(テキスト) | table |
--json |
機械可読なJSON形式で出力 | false |
npx output workflow runs list <workflowName>
指定したワークフロータイプの実行のみが表示されます。
npx output workflow runs list --json
プログラムによる分析が必要な場合や、完全な詳細情報が必要な場合はJSON形式を使用してください。
| ステータス | 意味 | 対応 |
|---|---|---|
| RUNNING | ワークフローが現在実行中 | 待機または監視する |
| COMPLETED | ワークフローが正常に完了 | 対応不要 |
| FAILED | ワークフローでエラーが発生 | トレースを使ってデバッグする |
| TERMINATED | ワークフローが手動で停止された | 意図した操作かどうか確認する |
| TIMED_OUT | ワークフローが制限時間を超過 | 長時間処理がないか確認する |
実行履歴を確認する際は、以下の項目に注目してください。
シナリオ: 失敗したワークフロー実行を見つける
# 直近の実行を一覧表示し、FAILEDステータスを確認する
npx output workflow runs list --limit 20
# またはJSON形式とjqを組み合わせてフィルタリングする
npx output workflow runs list --json | jq '.[] | select(.status == "FAILED")'
シナリオ: デバッグ用のワークフローIDを取得する
# 特定のワークフローの実行を一覧表示する
npx output workflow runs list my-workflow --limit 5
# 出力からワークフローIDを確認する(例: "abc123xyz")
# その後、デバッグを実行する
npx output workflow debug abc123xyz --json
シナリオ: 特定のワークフローの最近のアクティビティを確認する
# data-pipelineワークフローの直近10件の実行を確認する
npx output workflow runs list data-pipeline --limit 10
シナリオ: 分析用に実行履歴をエクスポートする
# 最近のすべての実行をJSON形式で取得し、外部分析に活用する
npx output workflow runs list --json > workflow-runs.json
シナリオ: 失敗が始まったタイミングを特定する
# より多くの履歴を確認してパターンを把握する
npx output workflow runs list --limit 50 --json | jq 'group_by(.status) | map({status: .[0].status, count: length})'
npx output workflow debug <workflowId> --jsonnpx output workflow debug <id> - 実行トレースを分析するnpx output workflow status <id> - 現在のステータスを確認するnpx output workflow result <id> - 実行結果を取得するnpx output workflow list - 利用可能なワークフローを一覧表示するThis skill helps you view the execution history of workflows. Use it to find failed runs, identify workflow IDs for debugging, and review past executions.
npx output workflow runs list
By default, this shows the 100 most recent workflow executions across all workflow types.
| Flag | Description | Default |
|---|---|---|
--limit <n> |
Number of runs to display | 100 |
--format <type> |
Output format: table, text | table |
--json |
Output machine-readable JSON | false |
npx output workflow runs list <workflowName>
This shows only runs for the specified workflow type.
npx output workflow runs list --json
Use JSON format for programmatic analysis or when you need full details.
| Status | Meaning | Action |
|---|---|---|
| RUNNING | Workflow is currently executing | Wait or monitor |
| COMPLETED | Workflow finished successfully | No action needed |
| FAILED | Workflow encountered an error | Debug with trace |
| TERMINATED | Workflow was manually stopped | Review if expected |
| TIMED_OUT | Workflow exceeded time limit | Check for long operations |
When viewing runs, pay attention to:
Scenario: Find failed workflow runs
# List recent runs and look for FAILED status
npx output workflow runs list --limit 20
# Or use JSON format with jq to filter
npx output workflow runs list --json | jq '.[] | select(.status == "FAILED")'
Scenario: Get workflow ID for debugging
# List runs for a specific workflow
npx output workflow runs list my-workflow --limit 5
# Note the workflow ID from the output (e.g., "abc123xyz")
# Then debug it
npx output workflow debug abc123xyz --json
Scenario: Review recent activity for a specific workflow
# See the last 10 runs of the data-pipeline workflow
npx output workflow runs list data-pipeline --limit 10
Scenario: Export run history for analysis
# Get all recent runs as JSON for external analysis
npx output workflow runs list --json > workflow-runs.json
Scenario: Find when failures started
# Look at more history to find patterns
npx output workflow runs list --limit 50 --json | jq 'group_by(.status) | map({status: .[0].status, count: length})'
npx output workflow debug <workflowId> --jsonnpx output workflow debug <id> - Analyze execution tracenpx output workflow status <id> - Check current statusnpx output workflow result <id> - Get execution resultnpx output workflow list - List available workflows原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。