Integrating a metal framework with Co-confined carbon nanotubes as trifunctional electrocatalysts to boost electron and mass transfer approaching practical applications.