Actions72
- Tab Actions
- Page Actions
- DOM Actions
- Group Actions
- Window Actions
- Session Actions
- Storage Actions
- Performance Actions
- Extension Actions
- Client Actions
- Command Actions
DOM → Eval
AI-generatedSummary
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
datafield when present, then emits each array element as a separate item. Non-object results are placed in aresultfield; object results are emitted directly. Errors stop execution unless Continue On Fail is enabled, in which case an item with anerrorfield is returned.