← Agents catalog

Page extraction

v1.0.0 knowledge native in the platform 0.9 KB

Included in the platform · also .usagent

page-extract.usagent

SHA-256 · d4f060b10c97…

Download .usagent

What the agent does

The agent receives an address and a description of what needs to be taken from the page: products, prices, the headline of an article or other fields. The page is read with a single fetch_url request, the values are copied from the text.

Fields that are not on the page go to missing. Pages that are assembled only in a browser, after a login or from several links, are not opened by this agent. The package is part of the UniShift installation.

How to install

  1. Download page-extract.usagent.
  2. Open Settings → AI Router → Agents.
  3. Click "Import .usagent" and select the file.
  4. An unsigned package goes to quarantine. An administrator checks it and publishes it.

Running requires an online runner-agent with a capability from the list below. Without a runner the agent is unavailable.

Runner requirements

  • agent.run.v1

Tools

fetch_url

Steps

  1. fetch

    Call fetch_url on the single http(s) URL in the request. Keep the returned text. If there is no URL, stop.

  2. extract

    Return the final JSON only. items contain the requested fields copied from the fetched text. Requested fields that are absent go to missing. Do not add values that were not on the page.

API: GET /api/agents/page-extract · GET /api/agents/page-extract/download