MQTT General

10 action groups: ManagerAction, MouseAction, KeyboardAction, BrowserControl, ElementAction, ImageAction, OthersAction, EmailAction, DeveloperAction, General Debug

Keyboard → vpaste

AI-generated

Summary

Publish a virtual paste (vpaste) keyboard action via MQTT to a specified topic, optionally awaiting a response message.

Inputs

  • Topic (required) — MQTT topic to which the vpaste action is published.
  • QoS — Quality of Service level for MQTT publish (0, 1, or 2).
  • Include Input Items — Include selected fields from input items in the payload under inputItems.
  • Include Input Items Fields — Comma-separated list of input fields to include when 'Include Input Items' is enabled.
  • Wait For Response — Whether to wait for a response message on a specific topic before returning output.
  • Response Topic (required) — MQTT topic to receive the response message if waiting for response; defaults to RES_.
  • Response Timeout (ms) — Maximum wait time in milliseconds for the response message.
  • Parse Response As JSON — Parse the response payload as JSON if possible.
  • Index — Index of the target tab or clipboard slot to paste from.
  • Target — High-level selector string to identify the target element (e.g., 'id=demoInput', 'css=button').
  • XPath — Explicit XPath selector for the target element (used when target parsing is not applied).

Output shape

a list of items, each containing the original item data merged with MQTT publish details and optionally the response data if requested.

If 'Wait For Response' is enabled, the node waits for a message on the specified response topic and includes the response payload parsed as JSON if configured. Otherwise, it only confirms publish success or returns an error.

Examples

Example 1: Publish a virtual paste command to topic 'playwright/keyboard/vpaste' at index 0 targeting the element with id 'demoInput', without waiting for response.

Topic='playwright/keyboard/vpaste', Index=0, Target='id=demoInput', Wait For Response=false

Example 2: Publish a vpaste command with waiting for response on topic 'COMMAND_TOPIC' and receive on 'RES_COMMAND_TOPIC', parsing the response as JSON.

Topic='COMMAND_TOPIC', Wait For Response=true, Response Topic='RES_COMMAND_TOPIC', Parse Response As JSON=true

Links

Discussion