decide_workflow_items
Decide workflow items
Answer an engine run paused on items: for every failed item the run is waiting on, retry it, edit its prompt and retry, or skip it. Read the open positions and the current revision from get_workflow_run's recovery.items; the decisions must cover exactly those positions, once each. quote=true prices the decisions and changes nothing.
Scope
generation.write— Makes, edits, imports, shares and deletes media in the account.
Behaviour
- Writes
- Creates or changes items in the caller's own account.
- Can delete or overwrite
- Can delete, overwrite, cancel or withdraw something the caller already has, so a host should confirm it.
- Stays in the account
- Stays inside the caller's private Kuro account: any media provider it calls acts on Kuro's account, and the result is visible to no one else.
Inputs
run_idstring · requireduuid
step_idstring · requiredmatches ^[a-z][a-z0-9_]*$
revisioninteger · required≥ 0
decisionsarray of object · requiredat least 1 item
quoteboolean · optional
Example call
A tools/call request with the required arguments only, each a placeholder read off the schema. Replace them before sending.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "decide_workflow_items",
"arguments": {
"run_id": "00000000-0000-4000-8000-000000000000",
"step_id": "<step_id>",
"revision": 0,
"decisions": [
{
"position": 0,
"action": "retry"
}
]
}
}
}Input schema
As the server sends it in tools/list.
{
"type": "object",
"properties": {
"run_id": {
"type": "string",
"format": "uuid"
},
"step_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
},
"revision": {
"type": "integer",
"minimum": 0
},
"decisions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"position": {
"type": "integer",
"minimum": 0
},
"action": {
"type": "string",
"enum": [
"retry",
"edit",
"skip"
]
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 6000
}
},
"required": [
"position",
"action"
],
"additionalProperties": false
},
"minItems": 1
},
"quote": {
"type": "boolean"
}
},
"required": [
"run_id",
"step_id",
"revision",
"decisions"
],
"additionalProperties": false
}Related tools
- get_workflow_run
Read a workflow run, its recorded steps, generations, and current checkpoint.