---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/ScrapperRequestContext.md
description: >-
  Mutable context handed to each input-pipeline stage **before** the HTTP
  request is sent. Identical for both verbs.
---

# Interface: ScrapperRequestContext

Defined in: [batteries/tools/scrapper/shared.ts:115](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L115)

Mutable context handed to each input-pipeline stage **before** the HTTP request is sent.
Identical for both verbs.

## Properties

| Property                                        | Modifier   | Type                                                                                                              | Description                                                             | Defined in                                                                                                                            |
| ----------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|  `headers`         | `public`   | [`ToolHeaders`](../tools/_shared/type-aliases/ToolHeaders.md)                                                     | Resolved request headers sent to the SCRAPPER INSTANCE (auth). Mutable. | [batteries/tools/scrapper/shared.ts:123](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L123) |
|  `instanceUrl` | `readonly` | `string`                                                                                                          | The Scrapper instance base URL (read-only).                             | [batteries/tools/scrapper/shared.ts:125](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L125) |
|  `params`           | `public`   | [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)<`string`, `string`> | Wire-kebab query params (everything except `url`). Mutable.             | [batteries/tools/scrapper/shared.ts:121](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L121) |
|  `stash`             | `readonly` | `Map`<`string`, `unknown`>                                                                                      | Cross-stage scratch space; also carried onto the response context.      | [batteries/tools/scrapper/shared.ts:127](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L127) |
|  `toolName`       | `readonly` | `string`                                                                                                          | The tool's name (read-only).                                            | [batteries/tools/scrapper/shared.ts:117](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L117) |
|  `url`                 | `public`   | `string`                                                                                                          | The target page URL (the `url` argument). Mutable.                      | [batteries/tools/scrapper/shared.ts:119](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L119) |

## Methods

### shortCircuit()

```ts
shortCircuit(result: string): void;
```

Defined in: [batteries/tools/scrapper/shared.ts:129](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L129)

Skip the fetch and return `result` verbatim as the tool's output (e.g. a cache hit).

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `result`  | `string` |

#### Returns

`void`
