get agent session.md


version: "2026.1.0" language: "en"

Get Agent Session

The Get Agent Session building block fetches details about the current flow execution (for example when running from a run list), so the values can be used at runtime for decisions or alternative flow paths.

Note: The screenshot on this page uses the Elegance Design , introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Get Agent Session onto the canvas.

  2. Connect the block in the flow. Use the output values (for example Flow name , Run List name , or Agent > Type) in later blocks for logging or branching.

  3. Run the flow when it's ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.