get_playbook_step_workflow
Read a playbook workflow step's live execution state, input readiness, `can_run` flag, and latest run.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
team_id | integer | Yes | — | Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions. |
plan_uuid | string (uuid) | Yes | — | Playbook workflow step plan_uuid from get_playbook_cycle. |
Input Schema
{
"type": "object",
"required": [
"team_id",
"plan_uuid"
],
"properties": {
"team_id": {
"type": "integer",
"minimum": 1,
"description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
},
"plan_uuid": {
"type": "string",
"format": "uuid",
"description": "Playbook workflow step plan_uuid from get_playbook_cycle."
}
}
}Output Schema
{
"type": "object",
"required": [
"plan_uuid",
"status",
"can_run",
"can_choose_another",
"read_only",
"link_url"
],
"properties": {
"run": {
"type": [
"object",
"null"
],
"properties": {
"at": {
"type": "integer"
},
"by": {
"type": "integer"
},
"path": {
"type": [
"string",
"null"
]
},
"error": {
"type": "string"
},
"run_id": {
"type": "string",
"format": "uuid"
},
"source": {
"type": "string"
},
"status": {
"type": "string"
},
"link_url": {
"type": "string"
},
"finished_at": {
"type": "integer"
},
"execution_uuid": {
"type": "string",
"format": "uuid"
}
}
},
"mode": {
"type": [
"string",
"null"
]
},
"inputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"state": {
"type": "string"
},
"reason": {
"type": "string"
},
"step_title": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
}
}
}
},
"status": {
"enum": [
"idle",
"running",
"failed",
"done",
"unavailable"
],
"type": "string"
},
"can_run": {
"type": "boolean"
},
"link_url": {
"type": "string"
},
"workflow": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"archived_at": {
"type": [
"integer",
"null"
]
},
"has_schedule": {
"type": "boolean"
}
}
},
"plan_uuid": {
"type": "string",
"format": "uuid"
},
"read_only": {
"type": "boolean"
},
"runs_as_name": {
"type": [
"string",
"null"
]
},
"blocked_reason": {
"type": [
"string",
"null"
]
},
"runs_as_user_id": {
"type": [
"integer",
"null"
]
},
"can_choose_another": {
"type": "boolean"
},
"unavailable_reason": {
"type": [
"string",
"null"
]
}
}
}Instructions
Read the live workflow state of a playbook workflow step (plan_uuid from get_playbook_cycle). Read-only; it also settles a finished run so the step shows its final state.
Output: status (idle, running, failed, done or unavailable), workflow (id, name, status, archived, archived_at, has_schedule), inputs (each with name, state of ready, empty, waiting or refused, from, step_title, reason), can_run and blocked_reason, can_choose_another (true when the attached workflow was archived or lost and can be swapped), runs_as_user_id / runs_as_name (who the workflow runs as), read_only, mode, unavailable_reason, run (latest run: status, run_id, execution_uuid, error, at, by, finished_at, source, path, link_url) and link_url.
When to use
Use to inspect a kind: "workflow" playbook step (plan_uuid) before running or swapping its attached workflow.