---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/structured_data/variables/formatTableTool.md
description: Convert a JSON array of objects into a formatted table.
---

# Variable: formatTableTool

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

Defined in: [batteries/tools/structured\_data/index.ts:41](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/structured_data/index.ts#L41)

Convert a JSON array of objects into a formatted table.

## Remarks

Supports `markdown`, `csv`, and `tsv` output. Columns default to the keys of the first row;
supply `columns` to control which keys appear and in what order.
