harness_diagnose
Diagnose Harness resources by analyzing failures, testing connectivity, and troubleshooting GitOps sync issues. Accepts a URL to auto-detect resource type.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A Harness URL — resource type, org, project, and ID are extracted automatically | |
| org_id | No | Organization identifier (overrides default) | |
| options | No | Resource-specific diagnostic options. Pipeline: execution_id, pipeline_id, summary, include_yaml, include_logs, return_download_url (boolean, return signed logs.zip URLs instead of inline log text), log_snippet_lines, max_failed_steps. Pipeline diagnosis requires a completed execution. When a Harness URL contains ?step=<nodeExecutionId>, setting include_logs:true fetches that specific step's log regardless of pass/fail status and returns it as requested_step_log alongside any failed_step_logs. GitOps: agent_id. Call harness_describe for details. | |
| project_id | No | Project identifier (overrides 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 | |||