Count Plugin Presets
plugin_preset_countCount built-in presets on a loaded channel or mixer plugin before stepping through them. Confirms preset availability, since some third-party VSTs report zero.
Instructions
Return the number of built-in presets exposed by a loaded channel or mixer plugin.
Use before cycling presets with plugin_next_preset or plugin_prev_preset (some
third-party VSTs report 0 presets to FL's scripting API). Read-only; raises if the
target slot is empty or out of range.
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": {
"index": "<index>"
},
"name": "plugin_preset_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. | |
| index | Yes | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. | |
| location | No | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). | channel |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||