Remote Desktop Action icon

Remote Desktop Action

Execute or queue actions on a remote desktop

playwright.disconnect

AI-generated

Summary

Execute or queue a remote desktop disconnect action on a specified session.

Inputs

  • mode — Run executes immediately and returns a result; Build queues the action for batch execution.
  • sessionId (required) — Session ID from a Session node; mandatory for the operation.

Output shape

an array of result objects, each containing a 'json' field with the API response or queued state and a 'pairedItem' linking to the input item

When mode='run' the response is the POST /sessions/:id/run result; when mode='build' the response includes session_id, queued_actions and queued_count; errors are returned as objects with an 'error' field if the workflow continues on fail.

Examples

Example 1: Immediately disconnect a session

mode=run, sessionId=${$json.session.id}

Example 2: Queue a disconnect action for later batch processing

mode=build, sessionId=${$json.session_id}

Example 3: Handle failure when session ID is missing

mode=run, sessionId= (invalid) – workflow will push an error object if continueOnFail is enabled

Discussion