Preview pipeline
preview_pipelineRun a sample request through a set of blocks and report the outcome (approve, deny, human, or next), which block decided, its reason, and the escalation path a human exit would take. Each step lists a block the request reached, with the pipeline it belongs to; a branch or delegate reports enter or next for its condition, and end_of_branch when the request ran out of its blocks (for a delegate, out of the target pipeline). Delegate blocks expand to their targets' current active revisions, so the preview walks what a request would. Nothing is saved and no approval request is created. webhook blocks and other asynchronous kinds really call the endpoint or the model.
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": {
"pipeline_key": "<pipeline_key>",
"blocks": "<blocks>",
"sample": "<sample>"
},
"name": "preview_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | Yes | The blocks to run the sample through, in order; the same shape update_pipeline takes. Pass the current blocks from get_pipeline to test what is active. | |
| sample | Yes | The request to run through the blocks. Nothing is created: no approval request, no notification. | |
| pipeline_key | Yes | The pipeline the blocks stand in for ('entry' for the entry pipeline). Delegate blocks expand to their targets' current active revisions. | |
| default_ask_agent_owner | No | Whether the default asks the agent's owner first, as update_pipeline takes it. | |
| default_escalation_path | No | The default escalation path to assume, as update_pipeline takes it. |