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

节点 / builtin / ai / loaders

Current Page Document Loader

Load the current tab as text to feed into the Indexer

AI 扩展程序网页应用 — 不可用

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

Load the text of the page in your current tab, ready to index into a knowledge base.

Current Page Document Loader reads the text of the active browser tab and puts it in one output field, named by Output field name (text by default). It reads the page as you see it, so pages behind a login and content added by scripts are included.

Set DOM Selector to read only part of the page, such as the main article. It uses the same text extraction as Get All Text, and is meant to feed the Indexer.

  • Save the article, document or internal tool page you are looking at into a knowledge base.
  • Index pages that need you to be signed in, which URL Document Loader cannot reach.
  • Start it from a right-click so you can index any page as you browse.
设置项类型作用
Output field name TextThe name of the output field that will hold the loaded text. 默认值:text
DOM Selector Page elementThe selector of the DOM element to interact with.
Options GroupThe options for the node.
Options › Visible text only ToggleOnly return text from visible elements. 默认值:Off
Options › Include input fields ToggleWhether to include the input fields in the output. 默认值:Off
  • Leave DOM Selector empty to read the whole page. Use the picker to click the part you want, or type a selector such as article or main.
  • Turn on Visible text only to skip hidden menus, collapsed sections and other text you can’t see.
  • Output

Each item has the page text in the field you named (default text). With Include input fields on, the incoming fields are kept next to it. Pass it to the Indexer’s Input as {{ $input.text }}.

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

  1. Context Menu with Menu Contexts Page, so you can right-click any page to run the workflow.
  2. Current Page Document Loader with DOM Selector article, Visible text only on and Output field name text.
  3. Indexer with Input {{ $input.text }}. Connect Local Knowledge to Knowledge and Recursive Character Text Splitter to Text Splitter.
  • “No content found”. The page, or the element matched by DOM Selector, has no text. Run the workflow once the page has loaded, and check or clear DOM Selector.
  • The node doesn’t run in the web app. This node runs in the browser extension; install it or run the workflow from the extension.
  • Menus and footers end up in the knowledge base. Set DOM Selector to the main content, and turn on Visible text only.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Current Page Document Loader”