> ## Documentation Index
> Fetch the complete documentation index at: https://docs.averta.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool exposure

> Filter provider tools after a low-level Averta decision.

## Filter tools by name

```typescript theme={null}
import { filterToolsByIdentity } from "@averta-security/sdk-core";

const forwardedTools = filterToolsByIdentity(
  originalTools,
  decision.blockedTools,
  (tool) => tool.name
);
```

Use this after a `restrict_tools` decision and before the upstream provider call.

The helper preserves original tool ordering and returns a shallow copy when no tools are blocked.
