Function: createScrapperLinksTool()
ts
function createScrapperLinksTool(
config: ScrapperLinksConfig,
): Promise<Tool<SpooledArtifact>>;Defined in: batteries/tools/scrapper/index.ts:396
Create a configured Scrapper links Tool (async — accepts a dynamic-import artifact).
Parameters
| Parameter | Type | Description |
|---|---|---|
config | ScrapperLinksConfig | Instance URL, instance-auth headers, output policy, artifact resolver, per-parameter disposition, and middleware pipelines. |
Returns
Promise<Tool<SpooledArtifact>>
A promise of a Tool ready to register in a ToolRegistry.
Remarks
See createScrapperArticleTool for the two-headers caveat and the async rationale. Each links item is { url, text }.
Throws
E_INVALID_SCRAPPER_CONFIG when instanceUrl or artifact is invalid.