gb_get_serial_state
Reads Game Boy serial port registers SB and SC and returns parsed transfer state, including transfer-in-progress and clock-source values; returns an error if no ROM is loaded.
Instructions
Read serial port registers and return parsed state.
Reads SB (0xFF01) and SC (0xFF02). SC is decoded into
transfer_in_progress and clock_source fields.
Returns error if no ROM loaded.
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": "gb_get_serial_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||