execute_flow
Run conditional, iterative, or error-handling flows (if/for/try) within a robot session to control automation execution.
Instructions
Execute structured flow (if/for/try) within a session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Items to iterate when structure="for". | |
| rethrow | No | Whether to rethrow after except/finally. | |
| item_var | No | Variable name to bind each item in for-each loops. | item |
| condition | No | Expression for if/conditional flows. | |
| structure | Yes | Flow type ("if", "for", "try"). | |
| try_steps | No | Steps for the try block (when structure="try"). | |
| else_steps | No | Steps for the else branch (if). | |
| session_id | Yes | Session id to run the flow in. | |
| then_steps | No | Steps for the main branch (if/loop body/try block). | |
| except_steps | No | Steps for the except block. | |
| finally_steps | No | Steps for the finally block. | |
| max_iterations | No | Maximum iterations for for-each loops. | |
| except_patterns | No | Error patterns to match for except handling. | |
| stop_on_failure | No | Whether to stop loop/branch execution on first failure. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||