Kit API reference

How to read the API reference of a kit (grip-forge kit api <id>, gripforge_gamekit_api) and what it holds.

Source: docs/kit-api.mdView Markdown source

Also read offline — CLI: grip-forge docs kit-apiMCP tool: gripforge_docs { "topic": "kit-api" }

The API reference of the kits #

Every kit has a complete, generated API reference. It is the first thing to read before configuring a kit, writing a mod for it, or writing its presentation module.

Where to read it #

WhoHow
AI agent (MCP)gripforge_gamekit_api { id, sections? } (compact Markdown), or gripforge_gamekit_get { id, section: "api" } (JSON)
CLIgrip-forge kit api <id> [--section config,hooks] [--json] [--full]
HTTPGET /api/v1/gamekits/<id>/api (JSON), ?format=md, &compact=1, &sections=config,hooks
Cataloguethe API tab of a kit page
CodedefaultRegistry().apiReference(id), kitApiMarkdown(ref) (@gripforge/gamekits)

What it holds #

SectionFromContent
summarykits/<id>/api.ts3 to 5 lines: what the kit does, when to use it, with which kits
configmanifest configSchema + notesevery key at every depth: type, default, unit, limits, flags mod (a mod may set it), live (read again while running), scene (a scene may override it)
hooksengine.hookspayload fields, mutable fields, cancellable, targets, example tap
eventsevents.emits / listenswhen, payload fields, sample payload; for a listened topic, the kits that emit it
viewswebViews, varsweb interfaces of the kit and its HUD variables
servicesprovides + runtimecapabilities, the service object (ctx.services.get) and its methods
verbsengine.verbs, extensionsscript actions and conditions with their arguments
slotsassetsasset slots: kinds, required, creature role and clips
collectionsdata, engine.registriesdata collections: fields, example document, mod / live / per scene, registry with extends
inputsinputs, sticksinput actions and default keys
moddingengine.moddableevery mod point in one place
modulethe presentation module of the kitthe Bevy presentation module: version, needs, commands to the kit host, ABI command families, WGSL files, web UI (web/ui.json)
parityadapters, Rust kit host, modulestatus per target; (libgfkits) when the target runs the kit's Rust logic in the native library (Godot, Unity, desktop: derived from the library, never declared by hand), and one line per lack of a target, named (a view to provide by a ui.webui fragment, a fragment not yet released, the network core, a kit that refuses a native project)
changelogmanifestversions, breaking changes
examplesnotes, or generateda config, and a gripforge.mod/1 mod that adapts the kit
readmedocs.tsthe README of the kit (full form only)