Set workflow agent
set_workflow_agentAssign one of your agents to a workflow to resolve paused workflow_agentless errors or resume paused workflows. Uses current workflow version for assignment, or accepts a base_version to prevent stale updates.
Instructions
Assign one of your agents to a workflow. Use this after delete_agent reports paused workflows, or when run_workflow returns workflow_agentless. If base_version is omitted, this tool reads the workflow's current version before it assigns the agent. A supplied stale base_version is rejected with the current version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The UUID of one of your agents to assign. | |
| workflow_id | Yes | The workflow's UUID. | |
| base_version | No | Optional workflow current_version to compare before assignment. Omit it to use the current version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | A short confirmation of the assignment. | |
| version | Yes | The workflow current_version checked for this assignment. | |
| agent_id | Yes | The account-owned agent assigned to the workflow. | |
| workflow_id | Yes | The workflow whose agent changed. | |
| agent_deleted_at | Yes | Always null after assigning an agent: the workflow is no longer marked agentless. |