# QR code matrix (modules as data)

Encode text as a QR code and get the raw grid of modules, with the role of every cell, to draw it any way you like.

Rows are strings of 0 (light) and 1 (dark). Roles use one digit per cell: 0 data, 1 finder, 2 separator, 3 timing, 4 alignment, 5 format information, 6 version information, 7 the dark module.

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

## Inputs

- `text` (required, string): The text or link to encode.
- `error_correction` (optional, string, one of `L`, `M`, `Q`, `H`, default `"M"`): How much damage the code survives: L 7%, M 15%, Q 25%, H 30%.
- `min_version` (optional, integer, range 1..40): Use at least this version (size): larger codes have more modules to draw with.

## Example: A tiny code

```json
{"input":{"text":"hi","error_correction":"L"}}
```
