---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/data_structure/variables/setOperationsTool.md
description: Perform set operations on two JSON arrays.
---

# Variable: setOperationsTool

```ts
const setOperationsTool: Tool<SpooledArtifact>;
```

Defined in: [batteries/tools/data\_structure/index.ts:323](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/data_structure/index.ts#L323)

Perform set operations on two JSON arrays.

## Remarks

Supported operations: `intersection`, `union`, `difference`, `symmetric_difference`,
`is_member`, `is_subset`, `is_superset`. For arrays of objects, an optional `compare_key`
narrows equality to a single property rather than deep structural comparison.
