mgba_pause
Pause GBA emulation. Halts game execution for state inspection or break.
Instructions
Pause emulation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:193-197 (schema)Tool definition (name, description, inputSchema) for mgba_pause — defines the tool with an empty input schema, meaning no parameters needed.
{ name: "mgba_pause", description: "Pause emulation.", inputSchema: { type: "object", properties: {} }, }, - src/tools.ts:365-368 (handler)Handler for mgba_pause tool — calls mgba.call('pause') via the MgbaClient RPC bridge and returns a success message.
case "mgba_pause": { await mgba.call("pause"); return ok("Emulation paused"); } - src/tools.ts:258-261 (registration)Registration function registerTools — registers the tool list and call handler on the MCP server, linking the mgba_pause case in the switch statement.
export function registerTools(server: Server, mgba: MgbaClient): void { server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS })); server.setRequestHandler(CallToolRequestSchema, async (req) => {