Clear Pattern
pattern_clearRemoves all notes and step-sequencer hits from a 1-based pattern while preserving the pattern slot, useful for emptying an entire pattern across all channels.
Instructions
Remove all notes and step-sequencer hits from a 1-based pattern while keeping the pattern slot (FL Studio 2026+).
Use to empty an entire pattern across all channels; use piano_roll_clear or
channel_clear_step_sequence to erase only one channel. Undoable via project_undo.
Older FL builds return ok=False; builds that show a modal confirmation dialog
return pending_confirmation=True until the user responds in FL Studio.
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": "pattern_clear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | 1-based pattern index to wipe clean of all notes and step-sequencer hits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||