{
    "type": "confirmation",
    "title": "Add functions",
    "body": {
        "type": "minecraft:plain_message",
        "contents": "How many functions do you want to add?"
    },
    "inputs": [
        {
            "type": "minecraft:number_range",
            "key": "functions",
            "label": "Amount",
            "start": 1,
            "end": 512,
            "initial": 1,
            "step": 1
        }
    ],
    "yes": {
        "label": "Add functions",
        "action": {
            "type": "dynamic/run_command",
            "template": "trigger add_functions set $(functions)"
        }
    },
    "no": {
        "label": "Close"
    }
}