GREAT LOTUS icon

GREAT LOTUS

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

4. Browser Control → SwitchTab

AI-generated

Summary

Switches browser focus to the tab at the specified zero-based index so subsequent browser actions target that tab. Publishes the action request over MQTT to the configured topic and remote port; it can optionally wait for a response and include selected incoming fields.

Inputs

  • Topic (required) — MQTT topic used to publish the request.
  • Remote Port (required) — CDP port used to route the request to the intended browser session. Defaults to the incoming remote_debugging_port value.
  • Index — Zero-based tab or context index to focus; defaults to 0.
  • QoS — MQTT delivery quality level: 0, 1, or 2; defaults to 1.
  • Include Input Items — When enabled, adds incoming item data to payload.inputItems; optionally specify fields to include.
  • Wait For Response — When enabled, waits for an MQTT response before returning, up to the configured timeout. Defaults to false.
  • Response Timeout (sec) — Maximum response wait in seconds when waiting is enabled; defaults to 60.
  • Delay Next Step (ms) — Delay before continuing after publishing, or after receiving the response when waiting is enabled; defaults to rand(200,1000).}],

Output shape

A single output item containing the MQTT response when waiting is enabled; otherwise the operation publishes the request and returns without a response body.

The request includes the selected tab index in payload.inputs. Selected incoming fields, when enabled, are attached under payload.inputItems. The response may be parsed as JSON or returned as raw text depending on its content.

Links

Discussion