dosbox_record
Capture OPL, MIDI, or WAV audio from a DOSBox-x guest for a specified duration and retrieve the resulting file. Arm early to ensure full capture of the sound driver's writes.
Instructions
Record the guest's sound for a stretch of time and return the file that appeared: an OPL register log (.dro), the MIDI stream (.mid) or the mixer output (.wav). This is the only independent record of what a game's sound driver actually writes. Arm it EARLY -- DOSBox-X starts an OPL capture at the guest's first register write, so arming late does not truncate the capture, it starts it somewhere else entirely.
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": {
"seconds": "<seconds>"
},
"name": "dosbox_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| kind | No | record_opl | |
| config | No | Config file, to find its captures= directory. | |
| seconds | Yes | How long to record. | |
| settle_seconds | No | ||
| captures_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||