API & MCP
Everything a person can do on Tonegrid Pattern Renderer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://tonegridpatternrender.usefulweb.site/api/v1/calculate– run Tonegrid Pattern RendererGET https://tonegridpatternrender.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Tonegrid Pattern Renderer
Turns a Tonegrid project — the JSON file or a share link — into a 16-bit stereo WAV file: one seamless pattern loop or the whole song arrangement, with the Tonegrid synth voices, drums, pan and reverb send. The result reports peak and RMS levels per channel, crest factor, clipped samples, the strongest spectral lines, a spectrum chart and a waveform overview. It is the same renderer as the WAV export in the Tonegrid app, so both give identical files.
| Field | Type | Default | Description |
|---|---|---|---|
project (required) | textarea | — | Tonegrid project (JSON or share link). Paste the content of a .tonegrid.json file, the project object returned by the Tonegrid Pattern Builder, a Tonegrid share link (…/app#project=…) or a short beat link (…/app#beat=…). |
range | select (pattern, song) | "pattern" | Range |
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://tonegridpatternrender.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
tonegrid_pattern_render - Local stdio connector:
node src/mcp-stdio.ts --tool=tonegrid-pattern-render
{
"mcpServers": {
"tonegrid-pattern-render": { "type": "http", "url": "https://tonegridpatternrender.usefulweb.site/mcp" }
}
}