Interface: ScrapperResponseContext<R>
Defined in: batteries/tools/scrapper/shared.ts:137
Mutable context handed to each output-pipeline stage after the response JSON is parsed.
Type Parameters
| Type Parameter | Description |
|---|---|
R | The verb's normalised result type (article object or links payload). |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
format | public | "raw" | "normalized" | The effective payload shape for this call. | batteries/tools/scrapper/shared.ts:147 |
output? | public | string | When set, used verbatim as the tool's output (overrides serialisation). | batteries/tools/scrapper/shared.ts:149 |
raw | public | unknown | The parsed Scrapper JSON body. Mutable (used when format is raw). | batteries/tools/scrapper/shared.ts:143 |
request | readonly | ScrapperRequestContext | The request context as it was sent (post-input-pipeline). | batteries/tools/scrapper/shared.ts:141 |
result | public | R | The normalised result. Mutable — reshape, redact, enrich. | batteries/tools/scrapper/shared.ts:145 |
stash | readonly | Map<string, unknown> | Cross-stage scratch space; carried over from the request context. | batteries/tools/scrapper/shared.ts:151 |
toolName | readonly | string | The tool's name (read-only). | batteries/tools/scrapper/shared.ts:139 |