How to get active toolname

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
8.7.4

Detailed description of issue
How to get active tool name programmatically on document load

Expected behaviour

Hello Shahid,

You can obtain the active tool in the viewer programmatically like so:

instance.Core.documentViewer.getToolMode().name;

Best Regards,
Darian