Skip to content

Get Selected Text

The Get Selected Text node captures any text you highlight on a webpage so your workflow can analyze, translate, or process it. Think of it as a smart clipboard that remembers what you select and makes it available for automation.

This is perfect for research collection, quote gathering, language learning, or any workflow where you want to process specific text snippets from web pages.

Illustration of selecting and capturing text from a webpage

When you highlight text on any webpage, this node captures that selection along with useful context like the page title and URL. It’s like having a research assistant that automatically saves and organizes everything you find interesting.

graph LR
  Select[Highlight Text] --> Capture{Get Selected Text}
  Capture --> Text[Captured Text]
  Capture --> Context[Page Context]
  style Capture fill:#6d28d9,stroke:#fff,color:#fff
  1. Navigate to Any Page: Go to the webpage containing text you want to capture.
  2. Highlight Text: Click and drag to select the text you’re interested in.
  3. Configure Options: Choose whether to trim whitespace or include surrounding context.
  4. Run Workflow: The node captures your selection and makes it available for processing.

Let’s capture key findings from a research article and save them with source information.

Let’s capture key findings from a research article and save them with source information.

What you can configure:

  • Trim Whitespace: Remove extra spaces from the start and end of your selection.
  • Max Length: Limit the number of characters captured (useful for summaries).
  • Include Context: Save the text surrounding your selection to understand where it came from.
  • Include Source Info: Save the page title and URL.

What you get:

  • Selected Text: “Solar panel efficiency has increased by 40%…”
  • Page Details: The title (“Renewable Energy Breakthrough 2024”) and URL.
  • Stats: Length of text and word count.
  • Context: The sentences immediately before and after your selection.
SettingPurposeWhen to Use
Trim WhitespaceRemove extra spaces and line breaksFor cleaner text processing
Include ContextAdd surrounding text for better understandingWhen context is important for analysis
Max LengthLimit captured text lengthTo prevent processing very long selections
  • No text captured: Make sure you’ve highlighted text on the page before running the workflow
  • Text appears incomplete: Check if you selected all the text you intended, or increase the max length setting
  • Missing context: Enable “Include Context” to capture surrounding text for better understanding