Toggle the "automatically adjust brightness" feature

I'd love to have a touchbar button which toggles the "automatically adjust brightness feature" as I sometimes like it on and sometimes prefer it off, and I don't wanna have to go digging in the settings each time. If this is already achievable with macOS or BTT, please tell me. Thank you.