We know how to do this (mostly) with AI constructive planning.
We know how to stack blocks and how to use constraint reasoning to generate parameter values. Advantage: Safe and correct because specific goal is proven to be achieved by the sequence(s) of actions.