Planning tool-use actions