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

# Function: createScrapperLinksTool()

```ts
function createScrapperLinksTool(
  config: ScrapperLinksConfig,
): Promise<Tool<SpooledArtifact>>;
```

Defined in: [batteries/tools/scrapper/index.ts:396](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/index.ts#L396)

Create a configured Scrapper **links** [Tool](../../../../forge/classes/Tool.md) (async — accepts a dynamic-import `artifact`).

## Parameters

| Parameter | Type                                                            | Description                                                                                                                   |
| --------- | --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `config`  | [`ScrapperLinksConfig`](../type-aliases/ScrapperLinksConfig.md) | Instance URL, instance-auth headers, output policy, `artifact` resolver, per-parameter disposition, and middleware pipelines. |

## Returns

`Promise`<[`Tool`](../../../../forge/classes/Tool.md)<[`SpooledArtifact`](../../../../spooled_artifact/classes/SpooledArtifact.md)>>

A promise of a `Tool` ready to register in a `ToolRegistry`.

## Remarks

See [createScrapperArticleTool](createScrapperArticleTool.md) for the two-headers caveat and the async rationale. Each
`links` item is `{ url, text }`.

## Throws

[E\_INVALID\_SCRAPPER\_CONFIG](../../../variables/E_INVALID_SCRAPPER_CONFIG.md) when `instanceUrl` or `artifact` is invalid.
