UiPath Documentation
agents
latest
false
  • Getting started
    • Overview
    • ScreenPlay feature availability
    • Licensing
  • Installation
    • Installing ScreenPlay
    • Best practices
    • Data collection
    • Running and inspecting the execution results
    • ScreenPlay Variable Security

ScreenPlay user guide

Running and inspecting the execution results

The ScreenPlay execution trace is an HTML file that records how the ScreenPlay agent interpreted and executed your prompt. Use it to review, validate, or troubleshoot a run.

Accessing the execution trace

  1. Run the automation in Debug mode.
  2. After the run completes, go to Debug and select Open Logs in Studio.
  3. Open the ScreenPlay folder.
  4. Open the most recent .html file.

Result: The HTML file shows an execution trace that details how the ScreenPlay agent reasoned about the prompt, identified UI targets, and executed each action.

About the execution trace file

The ScreenPlay Execution Trace HTML file provides a complete visual and diagnostic record of a ScreenPlay automation run. It captures prompt input, AI reasoning, on-screen actions, and timing metrics in a structured, interactive format.

You can use this file to inspect and validate how ScreenPlay interpreted a prompt, which UI elements were targeted, and how each automation step executed across the interface.

The file is generated automatically by default. To change this setting, go to Project Settings, select UIAutomation Modern, then select ScreenPlay, where you can also set how many days the trace files are stored.

When you run a ScreenPlay automation, the execution trace is generated as an .html file that combines:

  • Natural language prompt data.
  • Step-by-step UI snapshots with bounding boxes.
  • Timing and token metrics.
  • Diagnostic sections for reasoning and errors.

You can open the HTML file in any modern web browser to review or share the complete execution sequence.

File structure

Each ScreenPlay trace file follows a consistent internal structure with the following top-level sections.

SectionDescription
HeaderDisplays the prompt, trace ID, and timestamp of execution.
Overall Metrics (Grand Totals)Summarizes total runtime, processing times, and token usage.
Player ContainerContains the visual replay component — screenshots, highlights, and step navigation.
Iteration BlocksEach iteration (step) in the agent’s reasoning or execution cycle. Includes screenshots, reasoning, and metrics.
Diagnostic SectionsOptional panels for AI reasoning, activity data, and error messages.

Header fields

The following table describes the header fields and examples:

FieldExampleDescription
Promptcreate a random RPA supplierThe natural language instruction that initiated the automation.
Trace ID3b97584d-7fc0-43f6-830b-fc45c21811b3A unique identifier for this execution trace, used for reference or comparison.

Overall metrics

The Grand Totals section summarizes key performance data from the execution.

The following table describes the overall metrics:

MetricDescription
Total durationThe total time taken to complete the execution, including perception, reasoning, and action phases.
Cache / DOM / Server / Actions (tooltip)Breakdown of elapsed time in each subsystem, such as cached responses, DOM scanning, reasoning, and UI actions.
Total tokensTracks token input/output if the trace includes AI language model reasoning. Useful for debugging LLM usage.

Step frames

Each step-frame, or execution step, represents one iteration of reasoning and action by the ScreenPlay agent.

The following table describes each element and their purpose.

ElementPurpose
Step number (data-step="1")Identifies the sequence order of the step.
ScreenshotA captured image of the application window or desktop at the moment of execution.
Canvas coordinates (data-coordinates)JSON-encoded bounding boxes for detected or interacted elements.
Iteration headerDisplays the step title, preview of reasoning, and duration summary.
Iteration contentContains expanded detail, including reasoning text and any execution metadata.

Diagnostic sections

Each iteration may include one or more expandable sections, as described in the following table:

Section namePurpose
ThinkingDisplays AI reasoning and intent interpretation (if reasoning is enabled).
Step infoShows contextual information about the element targeted, selector, or detected UI control.
ErrorIndicates a failure, with visual cues in red; includes error messages, exception traces, or fallback actions.
Activity dataDisplays structured execution data, including activity type, arguments, and targeted applications.

Screenshot viewer and player controls

ScreenPlay traces include a built-in player for navigating through each captured frame.

The following table describes each control.

ControlDescription
Next / Previous buttonsNavigate between sequential steps.
Step range sliderJump directly to a step in the sequence.
Toggle highlightsOverlay bounding boxes defined in the data-coordinates field to visualize clicked or typed areas.
Screenshot containerDisplays the rendered image or placeholder if no image is available.

Visual overlays

Each step can include overlays to indicate UI interaction types, as follows:

  • Click – Rectangle drawn over a button or clickable area.
  • Type – Highlight around input fields.
  • Hover / Drag – Outline showing movement or cursor position.
  • Error marker – Red overlay on a failed element action.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated