API: extraction/fusion

better-web-search-mcp


better-web-search-mcp / extraction/fusion

extraction/fusion#

Functions#

fuseContent()#

fuseContent(url, title, strategiesResults, metadata?): FusedContent

Defined in: src/extraction/fusion.ts:118

Fuse the results of several extraction strategies into one page extraction.

The strategy with the highest effective confidence and non-empty content becomes the primary body. Structured data and API endpoints from every strategy are merged into the returned object regardless of which strategy won the content race.

Parameters#

ParameterTypeDescription
urlstringThe page URL the strategies were run against.
titlestringThe page title, when known.
strategiesResultsreadonly StrategyResult[]The per-strategy extraction results.
metadataRecord<string, string>Page metadata (title, description, published, author, siteName) to attach to the result.

Returns#

FusedContent