chain
Run a sequence of agents where each stage passes its output to the next, creating a pipeline workflow.
Instructions
Run agents sequentially as a pipeline. Each stage receives the prior stage's output as context.
Args: stages: JSON array of stage objects. Each supports all sandbox fields (prompt, model, tools, sandbox, system_prompt, etc.).
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": {
"stages": "<stages>"
},
"name": "chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stages | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |