# Css Grid Generator — REST API endpoint `css-grid-generator`

Generate a CSS Grid container declaration. sizing=equal gives repeat(n, 1fr); auto-fit and auto-fill give a responsive repeat(auto-fit, minmax(min_width, 1fr)) that needs no media query; custom takes your own track lists. Optional named areas are validated so every row declares the same number of cells, which is the usual reason a grid silently collapses. Returns the full rule, the separate template values, and the area names for the child rules.

- Category: generators
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/css-grid-generator/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/css-grid-generator/
- Same tool on the other surface: https://findutils.com/mcp/css-grid-generator/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/css-grid-generator/execute \
  -H "Content-Type: application/json" \
  -d '{
    "columns": 3,
    "gap": 16,
    "sizing": "equal"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/css-grid-generator
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `columns` | integer | no | Number of columns (1 to 24). Used by sizing=equal. Default 3. Default: `3`. |
| `rows` | integer | no | Number of rows (0 to 24). 0 lets rows be implicit. Default 0. Default: `0`. |
| `gap` | number | no | Gap between columns in px (0 to 200). Default 16. Default: `16`. |
| `row_gap` | number | no | Gap between rows in px (0 to 200). Defaults to the column gap. |
| `sizing` | string (equal \| auto-fit \| auto-fill \| custom) | no | equal, auto-fit, auto-fill or custom. Default equal. Default: `"equal"`. |
| `min_width` | number | no | For auto-fit and auto-fill: the minimum track width in px (20 to 1000). Default 240. Default: `240`. |
| `column_template` | string | no | For sizing=custom: a track list such as "200px 1fr 200px". |
| `row_template` | string | no | For sizing=custom: a row track list such as "auto 1fr auto". |
| `areas` | string | no | Optional named areas, one row per line or per quoted group, e.g. "header header" / "sidebar main". |

Example arguments (verified):

```json
{
  "columns": 3,
  "gap": 16,
  "sizing": "equal"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:css_grid_generator`. Full MCP reference: https://findutils.com/mcp/css-grid-generator/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
