harness_create
Create Harness resources such as pipelines and input sets from YAML or JSON definitions, including remote Git pipeline configurations.
Instructions
Create a Harness resource. For pipelines/input sets: pass body as a YAML string directly (recommended for complex definitions), or use body.yamlPipeline (YAML string), or body.pipeline (JSON object). 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 |
|---|---|---|---|
| url | No | A Harness UI URL — org, project, and supported resource_scope are extracted automatically | |
| body | Yes | The resource definition body. For pipelines: pass a YAML string directly, or an object with yamlPipeline (YAML string) or pipeline (JSON object). For other resources: pass a JSON object | |
| org_id | No | Org identifier. Required unless a Harness URL is passed (no configured default). | |
| params | No | Extra parameters, e.g. store_type='REMOTE' with connector_ref, repo_name, branch, file_path for remote Git pipelines. See harness_describe. | |
| 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. | |
| project_id | No | Project identifier. Required for project-scoped resources unless a Harness URL is passed (no configured default). | |
| resource_type | Yes | The type of resource to create | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||