harness_list
List Harness resources with pagination and filters. Provide a Harness URL to auto-detect scope, or specify org, project, search, and resource-specific filters to retrieve targeted resource lists.
Instructions
List Harness resources with filtering and pagination. Accepts a Harness URL to auto-extract scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Harness UI URL — auto-extracts org, project, and type | |
| page | No | Page number, 0-indexed | |
| size | No | Page size (1–100). Some resource types enforce a lower max (e.g. security_exemption max 50) — call harness_describe for per-resource limits. | |
| org_id | No | Organization identifier (overrides default) | |
| params | No | Additional identifiers for nested resources (e.g. repo_id for pull requests). Call harness_describe for fields per resource_type. | |
| compact | No | Strip verbose metadata from list items, keeping only essential fields (default true) | |
| filters | No | Resource-specific filters as key-value pairs. Valid keys depend on resource_type — call harness_describe(resource_type="<type>") for filters, enums, and required fields for that type. | |
| project_id | No | Project identifier (overrides default) | |
| search_term | No | Filter results by name or keyword | |
| resource_type | No | Resource type to list. Auto-detected from url. | |
| resource_scope | No | Scope to query. Use account for account-level resources and to omit org/project defaults; org injects only org; project injects org+project. Auto-detected from url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Current page number (0-indexed) when provided by the API | |
| items | No | Array of resource objects or primitive values when the API returns a canonical list | |
| total | No | Total number of matching resources when provided by the API |