A snippet for a function

You remove the input from the function and then ask for user input in the first step of your function.

silverbullet.registerFunction({name: 'myfunction '}, (string) => {
  input = editor.prompt("Enter input:", "Name");
})

Idea stolen from here. Not the most elegant solution but it should work.