retroarch_state_slot_minus
Decrement the currently selected save state slot in RetroArch to access earlier saved states.
Instructions
Decrement the currently-selected save state slot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:161-165 (registration)Registration of the retroarch_state_slot_minus tool in the TOOLS array with name, description, and empty inputSchema.
{ name: "retroarch_state_slot_minus", description: "Decrement the currently-selected save state slot.", inputSchema: { type: "object", properties: {} }, }, - src/tools.ts:240-240 (handler)Handler for the retroarch_state_slot_minus tool call in the CallToolRequestSchema switch statement. Invokes ra.stateSlotMinus() and returns success message.
case "retroarch_state_slot_minus": await ra.stateSlotMinus(); return ok("Decremented current slot"); - src/retroarch.ts:212-212 (helper)Implementation of stateSlotMinus() on RetroArchClient, which sends the 'STATE_SLOT_MINUS' UDP command (fire-and-forget) to RetroArch's Network Command Interface.
async stateSlotMinus(): Promise<void> { await this.send("STATE_SLOT_MINUS"); }