Any way to clear the output panel from a tool script?

Godot Version

4.3.dev4

Question

Hi, I have a tool that prints some text in the output panel every time I click a button (using print_rich in case that matters), but I don’t want to see the output from the previous time I ran my tool, I want it to be cleared automatically.

Is there any way to clear the output panel from my script?

I know I can clear the output using the clear button in the panel, I’m trying to avoid doing that.

1 Like

After a bit of digging, I sadly can’t see an obvious way to get access to the output panel :< you might be able to dig through the editor’s scene tree to find it?