Browser CLI icon

Browser CLI

Control a remote browser by talking directly to a browser-cli serve endpoint

DOM → Eval

AI-generated

Summary

Evaluate required JavaScript in the selected browser page using the dom.eval command. The gateway must be started with --allow-dangerous; a tab ID of 0 targets the active tab.

Inputs

  • JavaScript (required) — Code to evaluate in the page, for example return document.title.
  • Tab ID — Target tab ID. Leave at 0 to use the active tab.

Output shape

One or more n8n items containing the command result.

The node unwraps the response's data field when present, then emits each array element as a separate item. Non-object results are placed in a result field; object results are emitted directly. Errors stop execution unless Continue On Fail is enabled, in which case an item with an error field is returned.

Links

Discussion