Browser CLI icon

Browser CLI

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

DOM → Query

AI-generated

Summary

Queries the remote browser’s active page for elements matching a CSS selector by sending a dom.query command to the browser-cli serve endpoint. Requires a CSS selector; the operation is marked as requiring the server’s --allow-read-page permission.

Inputs

  • Selector (required) — CSS selector for the elements to query, such as #main or .content.

Output shape

A list of n8n items containing the raw result returned by the dom.query command.

Array results are emitted as one item per element; non-array results are emitted as a single item. Object results are placed directly in each item’s JSON, while primitive results are wrapped in a result field. The node does not add SDK-side rendering.

Links

Discussion