Fl Exec
fl_execExecute Python scripts within FL Studio to automate music production tasks, using pre-imported modules for channels, mixer, plugins, and more. Return values via result and capture prints as output.
Instructions
Run Python inside FL Studio. Pre-imported: channels, mixer, plugins, transport, patterns, playlist,
arrangement, general, ui, device, midi, utils. Set result to return a value; print() goes to output.
Avoid time.sleep and looping plugins.nextPreset; pass midi.FFNEP_DontPromptName to findFirstNextEmptyPat.
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": "fl_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||