There is currently no option to use the minecraft:dynamic/run_command click event type, only the standard minecraft:run_command with ClickEvent.runCommand(), this makes Minecraft command macros inaccessible. I would like to propose something like ClickEvent.dynamicRunCommand() for this.