harness_diagnose
Diagnose Harness pipeline, connector, delegate, and GitOps issues by analyzing failures, testing connectivity, checking health, and troubleshooting sync; defaults to pipeline execution diagnosis.
Instructions
Diagnose a Harness resource — analyze failures, test connectivity, check health, or troubleshoot GitOps sync issues. Defaults to pipeline execution diagnosis. Accepts a Harness URL to auto-detect the resource type. When a TYPESAFE_API_KEY is configured, pipeline failures additionally include an advisory "triage" field classifying each failed step (category: infra_flake, test_failure, config_error, dependency_failure, permission_error, timeout; plus confidence) — failure messages, delegate info, and fetched log snippets are sent to the configured TypeSafe API to produce it; the field is omitted when the key is absent, triage is disabled, or classification times out or is low-confidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A Harness URL — resource type, org, project, and ID are extracted automatically | |
| org_id | No | Org identifier. Required unless a Harness URL is passed (no configured default). | |
| options | No | Resource-specific options. Pipeline: execution_id, pipeline_id, summary, include_yaml, include_logs, include_all_step_logs (capped by max_all_step_logs, default 25, to avoid OOM on large matrix/loop pipelines), return_download_url, log_snippet_lines, max_failed_steps (needs a completed execution; a ?step= URL with include_logs fetches that step). GitOps: agent_id. | |
| project_id | No | Project identifier. Required for project-scoped resources unless a Harness URL is passed (no configured default). | |
| resource_id | No | Primary identifier of the resource (connector ID, delegate name). Auto-detected from url if provided. | |
| resource_type | No | Resource type to diagnose. Auto-detected from url if provided. Defaults to pipeline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||