…work in progress…
Macros are small programs or functions written in Klipper gcode. They're defined in printer.cfg (or files that it includes) and are loaded when Klipper performs a soft or hard restart (RESTART or FIRMWARE_RESTART respectively), which reads printer.cfg.
Macros can be called from: