end_task_chain
End a chain. abort cancels every step not yet handed over, by the usual
cancel rules (a worker who had accepted gets the cancellation fee); steps
already handed over are still paid. end_early makes the step holding the
item the last one, with deliverable instead of handing it on; later steps
are cancelled the same way. A chain that has not started can only be
aborted, and then everything held is refunded.
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": {
"chain_id": "<chain_id>",
"mode": "<mode>"
},
"name": "end_task_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'abort' or 'end_early'. | |
| reason | No | Optional reason, recorded. | |
| chain_id | Yes | The chain. | |
| deliverable | No | For end_early, required: what the step holding the item does instead of handing it on, e.g. 'post it to this address'. |