Actions57
- 1. Manager Actions
- 2. Mouse Actions
- 3. Keyboard Actions
- 4. Browser Control Actions
- 5. Element Actions
- 6. Image Actions
- 7. Others Actions
- 8. Email Actions
- 9. Developer Actions
- 10. General Debug Actions
4. Browser Control → SwitchTab
AI-generatedSummary
Switches the active browser tab on the routed CDP session so subsequent browser actions target that tab.
Inputs
- Topic (required) — MQTT topic used to publish the request to the client.
- QoS — MQTT delivery level: 0, 1, or 2; defaults to 1.
- Include Input Items — When enabled, attaches selected fields from incoming items as payload.inputItems; defaults to false.
- Include Input Fields — Comma-separated field paths to include from incoming items when Include Input Items is enabled.
- Wait For Response — Whether to wait for an MQTT response before returning output; defaults to false.
- Response Timeout (sec) — Maximum response wait when enabled; defaults to 60 seconds.
- Delay Next Step (ms) — Delay after publishing, or after receiving the response when waiting; defaults to rand(200,1000).
- Remote Port (required) — CDP port used to route the action to the intended worker session. Defaults to {{$json.remote_port}}; use 127001 for a local session as described in the property hint.
- Index — Zero-based tab index to activate. Defaults to 0; incoming expressions can select the index dynamically.
Output shape
A single n8n item containing the MQTT response when waiting is enabled; when it is disabled, the node proceeds after publishing and delay.
The operation sends the browser.switch_tab action with the configured remote port and tab index. The source excerpt omits implementation bodies, so the exact response field structure is not available.
