GizStack
View .mdOpen in ChatGPTOpen in Claude

GizStack APIs

The same operations serve people, scripts and agents.

APIAddress
Run GizlangPOST /play/run
Export a projectPOST /play/export
Published releasesGET /api/releases
Console actions as MCP tools/mcp (agents)
A team Agent as the Responses APIPOST https://agent.giz.sh/v1/responses (agents)
A team Agent to other agents (A2A)/a2a/AGENT (agents)
Start an Agent from a webhookPOST /hooks/TRIGGER/KEY (agents)
Every page as Markdown/llms.txt

Run Gizlang

Send POST /play/run with Content-Type: application/json and a UTF-8 object:

json
{
  "source": "function main(): void { print(\"Hello from Gizlang.\"); }"
}

Requests and limits

  • The operation also accepts ordinary form fields.
  • Browser requests must satisfy the same-origin policy. Cross-site requests are refused.
  • Source, output, runtime, memory and admission limits apply equally to people and agents.
  • The worker compiles an ordinary pinned Gizlang package with its declared capability grants.
  • It does not grant arbitrary native declarations, files, network or processes to the submitted program.

Result

JSON execution and validation results use gizlang.playground-result.v1:

FieldMeaning
schemaThe identifier of the result contract.
toolchainThe exact identity of the configured deployed compiler and release.
statusA stable outcome identifier.
phaseThe input, admission, preparation, compilation or execution phase.
exitCodeThe exit code of the child when available. Otherwise -1.
stdout, stderrBounded worker output and diagnostics.
elapsedMillisecondsThe reported work duration.
limitsThe applied worker resource policy.
  • Check status=completed and the reported toolchain. An HTTP response alone does not prove successful execution.
StatusMeaning
completedCompilation and program execution succeeded.
compile_errorThe compiler rejected the submitted program.
runtime_errorThe compiled program exited unsuccessfully.
output_limitCompiler or program output went past its bound.
timeoutA worker went past its deadline.
unavailableNecessary worker configuration, resources or execution failed.
busyWorker and queue capacity are full.
origin_refusedThe request failed the same-origin policy.
request_limitThe encoded request went past its limit.
invalid_requestThe input was not an accepted JSON object or form.
invalid_sourceThe source failed input admission.
invalid_downloadThe requested export filename is not supported.

HTTP status

ConditionHTTP status
A busy queue429
An unavailable worker503
A worker deadline504
A validation failureThe corresponding 4xx status
A compile or runtime failureCan be 200. These are execution results.

Responses keep the submitted source for the browser form, and escape worker output.

Export an ordinary project

Send POST /play/export with the same source and license fields.

RequestResponse
file=main.giz or file=package.jsonA download of that individual project file
No file fieldJSON that contains both ordinary files, the local command and the toolchain provenance

Export does not run the submitted program.

  • Keep the matching files together. The manifest pins the exact source and import grants.
  • When you edit the source, refresh the ordinary package pins.
  • Run the export locally with the toolchain version that it reports.

Published releases

GET /api/releases gives the release catalog as JSON: each release with its target, version, requirements and installer address. It returns 503 when the catalog is unavailable.

Packages

The package guide gives the registry API and the giz commands that use it.