During a hologram meeting with Windu, Yoda, Ki-Adi Mundi, and Aayla Secura in the Temple's war room, Windu tasked you with informing the Chancellor that Obi Wan had engaged Grievous on Utapau and see what his reaction is in order to learn his true intentions.
You informed the Chancellor just like Windu told you to. However, Palpatine revealed that he knew the dark side of the Force, leading you to realize that he was the Sith Lord you had been searching for. Palpatine told you that if you turned him over to the Jedi, then he would be unable to aid in saving your wife from her "fated" death that you had been dreaming of.
Despite that, you were still loyal to the Jedi Order. You informed Windu, who gathered a bunch of Jedi to arrest Palpatine. "In the name of the Galactic Senate of the Republic, you're under arrest, Chancellor." Said Windu as he ignited his lightsaber.
Palpatine killed all the Jedi that Mace Windu brought with him with ease, but was ultimately unable to defeat Windu, who disarmed him. Windu's intention was clearly to kill the Sith Lord. You pleaded with Master Windu not to kill the Chancellor, saying that he should be left for the Senate to judge.
"He has control of the Senate and the Courts. He's too dangerous to be left alive." Mace Windu said as he prepared to execute Palpatine.