API & MCP
Everything a person can do on Image Grid Splitter, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminaimagesplitter.usefulweb.site/api/v1/calculate– run Image Grid SplitterGET https://luminaimagesplitter.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Image Grid Splitter
Split one image into a row-and-column grid and download every tile as a PNG in one ZIP. Uneven dimensions are distributed across the tiles so the complete photo can be reconstructed.
| Field | Type | Default | Description |
|---|---|---|---|
images (required) | file | — | Single photo (PNG, JPEG, WebP or GIF). Exactly one PNG, JPEG, WebP or GIF image (first frame), up to 16 MP decoded; a ZIP containing exactly one photo also works. To split several photos, run the tool once per photo. |
rows | integer | 3 | Rows |
columns | integer | 3 | Columns |
Example request
Three-by-three tiles
curl -X POST https://luminaimagesplitter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"images":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"},"rows":3,"columns":3}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://luminaimagesplitter.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_image_splitter - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-image-splitter
{
"mcpServers": {
"lumina-image-splitter": { "type": "http", "url": "https://luminaimagesplitter.usefulweb.site/mcp" }
}
}