kernel_agents_chain
Create a declarative chain between two agents so the source's completion automatically triggers the target, with optional result passing, delays, and conditions.
Instructions
Create a declarative chain between two agents. When the source agent completes, the target agent is automatically triggered.
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": {
"source_agent_id": "<source_agent_id>",
"target_agent_id": "<target_agent_id>"
},
"name": "kernel_agents_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Label for this chain connection | |
| delay_ms | No | Delay in ms before triggering target (default: 0) | |
| condition | No | JSON condition: {"status":"completed"}, {"result_contains":"keyword"}, {} = always | |
| pass_result | No | Pass source result as context to target (default: true) | |
| source_agent_id | Yes | Source agent ID (triggers the chain on completion) | |
| target_agent_id | Yes | Target agent ID (receives the chain) |