The invention provides a foldable tool frame which is used for installing a table-type electric tool and provided with an automatic locking device. The tool frame comprises a bolt (1), a sliding rail(2), a pinching handle (3), a spring (5), a pull rod (6), a limiting hanging hook (7), an installing platform (8), an adjusting supporting frame (9), a supporting frame (10), a buckle (12), a buckle spring (13), a screw (14), a fixing plate (15) and a locking pin (16), the sliding rail (2) is installed on the installing platform (8), the limiting hanging hook (7) is installed on the sliding rail (2) and is movably connected with the pull rod (6), the supporting frame (10) is connected with the adjusting supporting frame (9) to form a supporting body to be movably connected with the installingplatform (8), the adjusting supporting frame (9) is connected with the installing platform (8) through the bolt (1) which is arranged in a groove of the sliding rail (2), the fixing pin (16) is fixedto the supporting frame (10), and the buckle (12) is installed on the fixing plate (15) through the screw (14). The tool frame has the advantages that the operation is simple, the height adjustment isconvenient, the tool frame can be moved at will, the tool frame is safe and reliable, the locking device is adopted, so that machine overturning in the moving process due to the gravity center problem of a machine is avoided.