Is it possible to get error balloon message contents?

I know it is possible with metahopper, but it does not instal on mac.

how you can do it in a rhino 7 python component:

from Grasshopper.Kernel import GH_RuntimeMessageLevel as msglvl
c = ghenv.Component.Params.Input[0].Sources[0]
comp = c.Attributes.GetTopLevel.DocObject
warn = comp.RuntimeMessages(msglvl.Warning)
errs = comp.RuntimeMessages(msglvl.Error)
rmrk = comp.RuntimeMessages(msglvl.Remark)

Thank you! does not work for me in Rhino 8 though

    private void RunScript(object x,ref object blank,
    ref object error,ref object remark,ref object warning){
        IGH_ActiveObject comp = (IGH_ActiveObject) this.Component.Params.Input[0].Sources[0].Attributes.GetTopLevel.DocObject;
        blank = comp.RuntimeMessages(GH_RuntimeMessageLevel.Blank);
        error = comp.RuntimeMessages(GH_RuntimeMessageLevel.Error);
        remark = comp.RuntimeMessages(GH_RuntimeMessageLevel.Remark);
        warning = comp.RuntimeMessages(GH_RuntimeMessageLevel.Warning);
    }

Will code should work if you add “warn”, “errs” and “rmrk” as outputs in the component: zoom in

Python does not work for me, c# works though! thank you!

Made small adjustment, this scans entire canvas, including inside clusters.

ErrorScanner.gh (16.8 KB) (update for Manual, Interval, Continuous scanning)