A small solar setup will absolutely work for charging you cordless tool batteries.

Get yourself a 100 watt panel, 12 volt charge controller, 150 AH battery, and a Pure Wave Sign inverter.

You can not use a modified sine-wave inverter. There is a high probability your battery chargers will not work or worse burn up your chargers.

You can start small with just a solar panel, charge controller and battery. Run a few lights in your house. You can get 12V lights at most RV/camper stores. You can use a 12V light in any standard lamp.