# Table image generator

Render a small table as a tidy SVG image with a header row, zebra stripes and right-aligned numbers.

- Endpoint: `POST https://setget.net/v1/tools/table-image` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `table-image`
- Page: https://setget.net/tools/table-image

## Inputs

- `rows` (required, json): The rows: a list of lists, or a list of objects keyed by column name. Up to 30 rows and 10 columns.
- `headers` (optional, array): Column names. Leave out to use the object keys, or the first row.
- `font_size` (optional, integer, default `14`, range 8..32): Text size in pixels.
- `theme` (optional, string, one of `light`, `dark`, default `"light"`): Light or dark colours.

## Example 1

```json
{"input":{"headers":["City","Temp"],"rows":[["Oslo",4],["Rome",18]]}}
```

## Example 2: Rows as objects, dark theme

```json
{"input":{"rows":[{"name":"Sam","role":"Admin"},{"name":"Alex","role":"Editor"}],"theme":"dark"}}
```

**What happens to long cells?** Each column is as wide as its longest cell up to a limit; longer text is cut with an ellipsis.
