harness_create
Create Harness resources like pipelines, connectors, and environments by specifying a resource type and a YAML or JSON body. Supports remote pipelines with Git integration.
Instructions
Create a Harness resource. For pipelines: use body.yamlPipeline (YAML string, recommended) or body.pipeline (JSON). For remote pipelines, pass git details in params: external Git (store_type='REMOTE', connector_ref, repo_name, branch, file_path) or Harness Code (store_type='REMOTE', is_harness_code_repo=true, repo_name, branch, file_path). For others: call harness_describe for the body format.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_type": "<resource_type>",
"body": "<body>"
},
"name": "harness_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_type | Yes | The type of resource to create | |
| body | Yes | The resource definition body (varies by resource type — typically the YAML or JSON spec) | |
| url | No | A Harness UI URL — org and project are extracted automatically | |
| org_id | No | Organization identifier (overrides default) | |
| project_id | No | Project identifier (overrides default) | |
| params | No | Additional parameters. For external Git pipelines: store_type='REMOTE', connector_ref, repo_name, branch, file_path, commit_msg. For Harness Code pipelines: store_type='REMOTE', is_harness_code_repo=true, repo_name, branch, file_path. |