In the Hanafi view, prior intention can remain connected to the opening takbir unless an intervening independent act breaks the connection.
In the Shafi‘i school, intention is more strictly linked with the opening takbir itself. The disagreement concerns timing and connection, not the requirement of intention.
Both invoke the central hadith on actions and intentions.