harness_execute
Run Harness actions such as pipelines, feature flags, connector tests, GitOps syncs, and chaos experiments. Pass a Harness URL to auto-extract IDs, or wait=true to block until completion.
Instructions
Execute an action on a Harness resource: run/retry/interrupt pipelines, kill/restore FME feature flags, test connectors, sync GitOps apps, run chaos experiments. You can pass a Harness URL to auto-extract identifiers. Pass wait: true for pipeline run/retry to block until the execution reaches a terminal status — single tool call instead of an LLM polling loop. For HQL batch operations pass queries with resource_type='hql_query' and action='validate' or 'run'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Harness UI URL — auto-extracts org, project, type, and ID | |
| body | No | Additional body payload for the action | |
| wait | No | Pipeline run/retry only: block until the execution reaches a terminal status (server-side polling). | |
| action | Yes | Action to execute (e.g. run, retry, interrupt, toggle, test_connection, sync) | |
| inputs | No | Pipeline runtime inputs (key-value pairs or overlay YAML). Check runtime_input_template (v0) or runtime_input_template_v1 first. | |
| org_id | No | Org identifier. Required unless a Harness URL is passed (no configured default). | |
| params | No | Action-specific parameters. Call harness_describe for available fields per resource_type. | |
| confirm | No | User-approved confirmation for medium/high-risk operations when the client cannot show a prompt. Set only with user intent; never overrides a user's decline. | |
| queries | No | Batch HQL queries for resource_type='hql_query' with action validate or run; run in parallel. | |
| project_id | No | Project identifier. Required for project-scoped resources unless a Harness URL is passed (no configured default). | |
| resource_id | No | Primary resource identifier | |
| input_set_ids | No | Input set IDs for complex pipelines. List available: harness_list(resource_type='input_set', filters={pipeline_id: '...'}). | |
| resource_type | No | Resource type with executable actions. Auto-detected from url. | |
| resource_scope | No | account|org|project. Omit for the resource's default scope. Never use account to skip a known org/project. Auto-detected from url. | |
| wait_timeout_seconds | No | Max seconds to wait when wait=true (default 600). On timeout returns execution_timed_out=true. | |
| wait_poll_interval_seconds | No | Initial poll interval when wait=true (default 3s, 1.5x backoff, capped at 30s). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||