When trying to run
const weapons = ["Longsword", "Longsword", "Dagger"];
const actor = canvas.tokens.controlled[0].actor;
game.MA5e.midiMA5e(weapons, actor)
as a macro I get this error in console.

If I remove actor and run this
const weapons = ["Longsword", "Longsword", "Dagger"];;
game.MA5e.midiMA5e(weapons)
I receive this error:

Foundry Version: v10.291
5e Version: v2.1.5
Multiattack 7.0.0
Midi-QOL 10.0.32
When trying to run
as a macro I get this error in console.
If I remove actor and run this
I receive this error:
Foundry Version: v10.291
5e Version: v2.1.5
Multiattack 7.0.0
Midi-QOL 10.0.32