hold_button
Hold a button for extended periods to perform actions like walking multiple tiles or fast-forwarding text in Pokemon Fire Red through the mGBA emulator.
Instructions
Hold a button for an extended period and return a screenshot.
Different from press_button in that it's designed for longer holds like walking multiple tiles or fast-forwarding text with B held.
Args: button: The button to hold frames: Number of frames to hold (default 30, ~500ms)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"button": "<button>"
},
"name": "hold_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | ||
| frames | No |