relay_detect
Find which devices are connected to the user's machine through a relay: sends the MIDI Identity Request (F0 7E 7F 06 01 F7, changes nothing on the device) to every output and matches the answers — manufacturer, model, firmware version — against the drivers' identity blocks. With maker_requests, also sends the makers' own identity requests the drivers name (they change nothing either, but the relay asks the user to accept them, once per output: tell the user first), which recognise devices that ignore the universal one. Returns the best driver ids (recognised_by and firmware when an identity block recognised the device) and identity_hex to pass to report_result. A device that does not answer is found by its knobs with listen_ms (by_controls), or by what people confirmed of its port name (learned); when several remain, ask names the control to have the user turn next (expect: what each candidate would send), then call again with listen_ms.
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": {
"code": "<code>"
},
"name": "relay_detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The pairing code the relay page or program shows (e.g. 'K7QM-2XPA'). | |
| user_id | No | Your anonymous SynthHub id, if you kept it from an earlier session (see the server instructions). Optional. | |
| listen_ms | No | Listen this long for a device that does not answer: ask the user first to turn three or four of its knobs during that time; the controls they send are matched against every driver (by_controls). Confirm the device with the user, then send its fingerprint to POST /v1/fingerprints so the next detection knows it. | |
| timeout_ms | No | How long to wait for answers (default 1000). | |
| maker_requests | No | Also send the makers' identity requests, after the user accepts them at the relay (default false). |