I think you have that entirely backwards.
Iran can see what the rest of the region, and the world, can see - that the Israeli government is desperate. All of the escalations in this war after the initial attack have come from the Israeli side, and usually right before their own allies try and calm the situation down or engage with their other partners in the region. The Netanyahu government cannot accept peace, to do so means that they will inevitably face justice - from their own people and from the international community.
So instead we get these outrages - from the massacre at the al-Ahli hospital (which derailed Biden's big attempt to stop things), to the march on al-Aqsa (which occurred as Blinken was demanding an end to settler crimes), to killing a Dutch citizen of Gazan heritage right before the (then) Dutch PM visited Israel, to the ceasefire that they collapsed, to several attacks on journalists and UN personnel (and convoys), to this (which occurs as Hamas was negotiating with Egypt and others about a new ceasefire, and happened the same day a US carrier group was withdrawn and before Blinken was due to visit).
If Iran feels emboldened, it is far more due to the state that Netanyahu has put Israel in - and for every day he and his criminal gang are not removed, the hole he is putting the country in gets ever deeper.
Six months more of his leadership and I think that state will not exist in a recognizable form within five years.