import_midi
Import a MIDI file to replace the open song, optionally setting pattern size or discarding unsaved changes; complex timing may not survive.
Instructions
Replaces the open song with one imported from a MIDI file. Bosca is a step sequencer, so complex timing may not survive.
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": {
"path": "<path>"
},
"name": "import_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .mid file. | |
| pattern_size | No | Steps per pattern. 0 or absent detects it from the file. | |
| discard_changes | No | Must be true to replace a song with unsaved changes. |