Remote Desktop Action icon

Remote Desktop Action

Execute or queue actions on a remote desktop

playwright.connect

AI-generated

Summary

Connects to a Playwright CDP endpoint via a remote desktop session.

Inputs

  • main (required) — Input items; the node reads the Session ID from its sessionId parameter (default expression looks at $json.session?.id or $json.session_id). In Build mode it also looks for an optional queued_actions array on the input JSON to append to.

Output shape

depends on mode

Run mode returns the raw API response from POST /sessions/{sessionId}/run. Build mode returns an object containing session_id, the updated queued_actions array, and queued_count.

Examples

Example 1: Run mode – immediate execution

Set Mode=Run, provide Session ID (e.g., from a Session node). Optionally set Cdp url and Cdp port if needed for the Playwright connection.

Example 2: Build mode – queue for later batch

Set Mode=Build, provide Session ID (same as above). The node will append a {action: 'playwright.connect', params: {...}} entry to the queued_actions array and output the updated list.

Discussion