promote_script
Promote an exact draft revision to active only after a successful workspace run with matching code hash, passed checks, and document kind; unmet conditions leave the draft unchanged.
Instructions
Promote an exact draft revision to active using a checked successful run of that exact revision in this workspace: status succeeded, at least one check, every check passed, matching code hash and document kind. No approval is required. Rejections leave the draft unchanged and list unmet conditions.
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": {
"scriptId": "<scriptId>",
"revision": "<revision>",
"runId": "<runId>"
},
"name": "promote_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Run receipt offered as promotion evidence | |
| revision | Yes | ||
| scriptId | Yes | Stable script identifier |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unmet | Yes | ||
| script | Yes | ||
| status | Yes |