---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/context/thrift/contracts/interfaces/WorkingToolRegistry.md
description: >-
  The MINIMAL tool-registry surface the pass needs — not the full core
  `ToolRegistry` class. Only `all()` (enumerate every registered tool, to
  compute the tools bucket's "before" weight) and `setHidden(...names)` (replace
  the entire hidden set — the mechanism by which a shed tool becomes invisible
  to the model while remaining callable via a catalog) are invoked.
---

# Interface: WorkingToolRegistry

Defined in: [src/batteries/context/thrift/contracts.ts:182](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L182)

The MINIMAL tool-registry surface the pass needs — not the full core `ToolRegistry` class. Only
`all()` (enumerate every registered tool, to compute the tools bucket's "before" weight) and
`setHidden(...names)` (replace the entire hidden set — the mechanism by which a shed tool becomes
invisible to the model while remaining callable via a catalog) are invoked.

## Remarks

`setHidden` REPLACES the whole hidden set on each call (matching core `ToolRegistry.setHidden`'s
contract) — the pass always passes the COMPLETE set of currently-hidden tool names, never a delta.
A structural registry that instead accumulates hidden names across calls would over-hide.

## Methods

### all()

```ts
all(): WorkingTool[];
```

Defined in: [src/batteries/context/thrift/contracts.ts:184](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L184)

Every tool currently registered (visible or hidden).

#### Returns

[`WorkingTool`](WorkingTool.md)\[]

***

### setHidden()

```ts
setHidden(...names: string[]): void;
```

Defined in: [src/batteries/context/thrift/contracts.ts:186](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L186)

Replace the registry's entire hidden set with exactly these tool names.

#### Parameters

| Parameter  | Type       |
| ---------- | ---------- |
| ...`names` | `string`\[] |

#### Returns

`void`
