---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/web_retrieval/functions/scrapperArticleToRetrievable.md
---

# Function: scrapperArticleToRetrievable()

```ts
function scrapperArticleToRetrievable(
  article: ScrapperArticleLike,
  opts?: ArticleToRetrievableOptions,
  recommend?: ArtifactRecommendations,
): RawRetrievable;
```

Defined in: [batteries/tools/web\_retrieval/index.ts:217](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/web_retrieval/index.ts#L217)

Convert a Scrapper normalised article into a single @nhtio/adk!RawRetrievable.

## Parameters

| Parameter   | Type                                                                          | Description                                                                      |
| ----------- | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `article`   | [`ScrapperArticleLike`](../interfaces/ScrapperArticleLike.md)                 | The Scrapper normalised article.                                                 |
| `opts`      | [`ArticleToRetrievableOptions`](../interfaces/ArticleToRetrievableOptions.md) | Trust tier, kind, id prefix, content source, markdown flag, optional spool hook. |
| `recommend` | [`ArtifactRecommendations`](../interfaces/ArtifactRecommendations.md)         | Optional artifact-resolver recommendations.                                      |

## Returns

[`RawRetrievable`](../../../../common/interfaces/RawRetrievable.md)

A single `RawRetrievable`.

## Remarks

Long article text is exactly what a reader-backed [@nhtio/adk!SpooledArtifact](../../../../spooled_artifact/classes/SpooledArtifact.md) is for: pass a
`spool` hook and the converter offers it the recommended artifact resolver (markdown when
`asMarkdown`, else text/HTML) so the model gets the right forged query tools. Without a hook,
content stays inline.
