UHPLC-QTOF metabolomics revealed garlic extract and B. subtilis alter key defense pathways, enhancing tomato resistance to Ralstonia solanacearum, an agent of bacterial wilt.