跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / extension

Get Selected Text

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

页面内操作 扩展程序网页应用 — 不可用

此内容尚不支持你的语言。

Read the text you have highlighted on the active tab into a field.

工作流 · first-workflow.awf 3 个步骤

My first workflow:包含 3 个步骤的工作流,从 When Started 开始,到 Edit Fields 结束。

Get Selected Text takes whatever text is currently selected (highlighted with the mouse) on the active tab and stores it in the field you name in Output field name. You get plain text, without formatting.

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

The node fails when nothing is selected, so the rest of the workflow does not run on empty text.

  • “Select, then act” workflows: translate, summarize, look up or save the passage you just highlighted.
  • Pair it with a Context Menu or Hotkey trigger so you select text and run the workflow in one gesture.
  • To keep links and formatting, use Get HTML of Selected Text. To read the whole page, use Get All Text.
设置项类型作用
Output field name (必填)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. 默认值:Off

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

  • Output

One item with your field, for example { "selection": "the text you highlighted" }.

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

  1. Add a Context Menu trigger, so the workflow appears when you right-click selected text.
  2. Add Get Selected Text with Output field name = selection.
  3. Add Translate with Text = {{ $input.selection }}, From = English and To = French. It runs on your device.
  4. Show the result with Display Markdown.
  • “No content found”. Nothing was selected on the active tab when the node ran. Select the text first, and keep that tab active while the workflow runs.
  • Selected text inside a box on the page is not picked up. Text selected inside an embedded frame (some editors and comment widgets) is not read; only the main page is.
  • The node fails outside the extension. This node runs in the browser extension; install it or run the workflow from the extension.
Turn highlighted text into a Todoist task 入门 · 6 分钟 需要连接 Explain any highlighted text in plain words 入门 · 4 分钟 设备端 Rewrite rough text in a professional tone 入门 · 4 分钟 设备端
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Get Selected Text”