assign_sample_file
Assign an audio file to all clips on a sample track in LMMS by specifying the track index and file path, using relative paths for built-in samples or absolute paths for custom files.
Instructions
Assign an audio file to all clips on a sample track.
Use relative paths for LMMS's built-in samples (e.g. "drums/kick01.ogg") or absolute paths for your own files.
Args: track_index: Index of the sample track file_path: Audio file path (WAV/OGG/MP3/FLAC)
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": {
"track_index": "<track_index>",
"file_path": "<file_path>"
},
"name": "assign_sample_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |