Build GB Studio project to ROM
build_romCompile a GB Studio project into a ROM, Pocket, or web target. Returns build status, exit code, and output path. Call after structural edits to verify the build.
Instructions
Invoke upstream gb-studio-cli (make:rom) to compile the project. Captures stdout+stderr to the configured compile log (read via read_compile_log). Returns { success, exitCode, romPath?, elapsedMs, stderrTail }. ALWAYS call this after structural edits before declaring work done. Requires GBS_CLI_PATH env var OR an installed GB Studio app in a standard location.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_rom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Build target. 'rom' → .gb/.gbc; 'pocket' → Analogue Pocket; 'web' → web bundle. | rom |
| outputName | No | Filename stem for the output (default: basename of the .gbsproj). Extension is chosen by target. |