MQTT General

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

Browser Control → CloseTab

AI-generated

Summary

Publish a MQTT message to close a browser tab at a specified index, optionally waiting for a response on a designated MQTT topic.

Inputs

  • Topic (required) — MQTT topic used for publishing the close tab command.
  • QoS — Quality of Service level for MQTT message delivery (0, 1, or 2).
  • Include Input Items — Optionally include selected fields from input items in the payload.
  • Include Input Items Fields — Comma-separated list of input fields to include in the payload if Include Input Items is enabled.
  • Wait For Response — Wait for a response message on a response topic before returning output.
  • Response Topic (required) — MQTT topic to listen for the reply message if Wait For Response is enabled.
  • Response Timeout (ms) — Maximum time in milliseconds to wait for a reply message.
  • Parse Response As JSON — Parse the response payload as JSON if possible.
  • Index — Index of the browser tab to close; leave empty to omit and close default tab.

Output shape

a list of items matching input or a single item if no input, each with mqtt property containing topic, action, payload inputs, and optional response if waiting for response

If 'Wait For Response' is enabled, the node subscribes to the specified response topic and waits up to the Response Timeout for a reply before completing. The response, if received and parseable as JSON, is included in the node output under mqtt.response.

Examples

Example 1: Close tab at index 1 without waiting for response

Set Topic to control topic, leave Wait For Response off, and specify Index as 1.

Example 2: Close tab and wait for confirmation

Enable Wait For Response, specify Response Topic (default prefixed with RES_), set Response Timeout, and provide the Index of the tab to close.

Links

Discussion