Skip to content

Web operators

Public

The Web family contains 3 operators. HTTP fetch + article scraping.

Fetches content from a URL.

Version 1.0.0 · Semantics side_effect · Visibility advanced

FieldTypeRequiredDefaultDescription
extract_mode”html” | “text” | “markdown”no"text"
timeout_msintegerno30000
PortTypeRequiredDescription
urlstringyesURL
PortTypeRequiredDescription
contentstringnoContent
metadataobjectnoMetadata

Fetches a URL through the SSRF-guarded HTTP client and extracts the main article body in markdown / text / html, plus lightweight metadata (author, description, published, site).

Version 1.0.0 · Semantics side_effect · Visibility advanced

FieldTypeRequiredDefaultDescription
format”markdown” | “text” | “html”no"markdown"Output format for the extracted article body.
include_metadatabooleannotrueInclude <meta>-tag metadata (author, description, published, site_name) in the output.
urlstringnoAbsolute URL to fetch. Falls back to the upstream ‘url’ input port if omitted.
PortTypeRequiredDescription
urlstringnoURL
PortTypeRequiredDescription
outputobjectnoArticle

Searches the web using a search API.

Version 1.0.0 · Semantics side_effect · Visibility advanced · Secrets SEARCH_API_KEY

FieldTypeRequiredDefaultDescription
engine”google” | “bing” | “serper”no"serper"
num_resultsintegerno5
PortTypeRequiredDescription
querystringyesQuery
PortTypeRequiredDescription
resultsarraynoResults

Every operator above is rendered from its JSON schema in /opt/glyph/schemas/operators/:

  • schemas/operators/web.fetch.json
  • schemas/operators/web.scrape.json
  • schemas/operators/web.search.json