Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / extension

Get HTML of Selected Text

Get the selected text from the page of the actual openend tab

In-page action ExtensionWeb app — not available

Read the HTML behind the part of the page you have highlighted, with its links and formatting.

Get HTML of Selected Text takes the current selection on the active tab and returns its markup, not just its words: links, bold text, list items and images inside the selection are kept as HTML. The result is stored as text in the field you name in Output field name.

The output holds only the new field. Turn on Include input fields to keep the incoming item’s fields next to it.

  • Save a highlighted passage with its links intact, for example as a note or a knowledge entry.
  • Convert a selection to Markdown with the Markdown node before sending it somewhere.
  • If you only need the words, use Get Selected Text.
SettingTypeWhat it does
Output field name (required)TextThe name of the output field.
Options GroupThe options for the node.
Options › Include input fields ToggleWhether to include the input fields in the output. Default: Off

Output field name: for example selectionHtml. Later nodes read it with {{ $input.selectionHtml }}.

  • Output

One item with your field, for example { "selectionHtml": "Read <a href=\"https://example.com\">this guide</a>" }.

None. This node needs no connection and has no slots for other nodes.

  1. Add a Context Menu trigger.
  2. Add Get HTML of Selected Text with Output field name = selectionHtml.
  3. Add Markdown with Operation = HTML to Markdown and Content = {{ $input.selectionHtml }}.
  4. Copy the result with Clipboard Write, ready to paste into your notes app.
  • The node fails with an error about the selection, or “No content found”. Nothing was selected on the active tab. Select the text first and keep that tab active while the workflow runs.
  • The HTML is cut in the middle of an element. The node returns exactly the selected range. Select a little more, or read a whole element with Get All HTML and a DOM Selector.
  • The node fails outside the extension. This node runs in the browser extension; install it or run the workflow from the extension.
Edit page

Last updated:

Was this page useful?
Ask Aria about Get HTML of Selected Text