Preview an isolated Metronome node or slice test
POST
/v1/metronomes/{metronomeId}/test-runs/previewResolve the immutable execution boundary, effects, resource references, and permission rings without executing a node.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| metronomeId | path | string | Yes | Metronome workflow ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| selection | object | Yes | — |
| selection.type | node | slice | Yes | — |
| selection.nodeId | string | No | — |
| selection.nodeIds | string[] | No | — |
| selection.boundaryContext | object | No | — |
| input | object | No | — |
| inputs | object | No | — |
| fixture | object | No | — |
| definition | object | No | — |
| definition.nodes | object[] | No | — |
| definition.nodes[].id | string | No | Unique identifier. |
| definition.nodes[].type | string | No | — |
| definition.nodes[].position | object | No | — |
| definition.nodes[].data | object | No | — |
| definition.nodes[].data.kind | trigger | condition | action | imagine | function | database | ticket | metronome | loop | end | note | No | — |
| definition.nodes[].data.subtype | string | No | — |
| definition.nodes[].data.label | string | No | — |
| definition.nodes[].data.description | string | No | Human-readable description. |
| definition.nodes[].data.config | object | No | — |
| definition.edges | object[] | No | — |
| definition.edges[].id | string | No | Unique identifier. |
| definition.edges[].source | string | No | — |
| definition.edges[].target | string | No | — |
| definition.edges[].sourceHandle | string | No | — |
| definition.edges[].targetHandle | string | No | — |
| definition.edges[].label | string | No | — |
| definition.executionRecoveryPolicy | object | No | — |
| definition.executionRecoveryPolicy.schemaVersion | computer_agents_metronome_recovery_policy_v1 | Yes | — |
| definition.executionRecoveryPolicy.enforcement | checkpointed | Yes | — |
| definition.executionRecoveryPolicy.inDoubtDefault | pause | Yes | — |
| definition.executionRecoveryPolicy.checkpointMaxBytes | integer | Yes | — |
| versionId | string | No | — |
| idempotencyKey | string | No | — |
| maxAttempts | integer | No | — |
| timeoutMs | integer | No | — |
| pinnedAgentVersions | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Resolved Metronome test execution planapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | string | Yes | — |
| data | object | Yes | — |
| data.metronomeId | string | Yes | — |
| data.versionId | string | Yes | — |
| data.definitionSha256 | string | Yes | — |
| data.plan | object | Yes | — |
| data.plan.schemaVersion | integer | Yes | — |
| data.plan.selection | object | Yes | — |
| data.plan.runKind | workflow | node_test | slice_test | Yes | — |
| data.plan.startNodeId | string | Yes | — |
| data.plan.stopNodeIds | string[] | No | — |
| data.plan.allowedNodeIds | string[] | No | — |
| data.plan.allowedEdgeIds | string[] | No | — |
| data.plan.boundaryContext | object | No | — |
| data.plan.effects | object[] | Yes | — |
| data.plan.requiredBoundaryNodeIds | string[] | No | — |
| data.plan.executable | boolean | Yes | — |
| data.plan.digest | string | Yes | — |
400Invalid or unsafe execution selection
None.
404Metronome not found
None.
409Immutable version binding conflict
None.
Preview an isolated Metronome node or slice test
Loading...
Response 200
Loading...