Filter tools by name
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.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Filter provider tools after a low-level Averta decision.
import { filterToolsByIdentity } from "@averta-security/sdk-core";
const forwardedTools = filterToolsByIdentity(
originalTools,
decision.blockedTools,
(tool) => tool.name
);
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.