Greenlight the run (SPENDS CREDITS)
greenlightStart the produced run. THIS SPENDS THE USER'S REAL CREDITS, capped hard at cap_credits — required, no default: it must be a number the human explicitly approved in chat after seeing the quote. rung = how often the run stops to ask (1 every step · 2 big decisions · 3 autopilot). The server refuses caps below the estimate floor and enforces the cap before every render; failures refund themselves; stopping keeps everything made.
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": {
"project_id": "<project_id>",
"rung": "<rung>",
"cap_credits": "<cap_credits>",
"quote_id": "<quote_id>"
},
"name": "greenlight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rung | Yes | ||
| quote_id | Yes | From quote. Greenlight refuses if the plan or settings changed since. | |
| project_id | Yes | ||
| cap_credits | Yes | Hard spend ceiling in credits: human-approved, never invented | |
| confirm_length | No | The person accepts a cut the build kept at a different length than they chose. Only after greenlight refused with that question and they answered it. |