Reading the user’s console errors from a chrome extension

I am creating a small extension for personal use that should help me analyze errors using an API I made. In order to do that it requires read access to the console of the active tab. Is there a way to achieve that? I tried overriding the console methods but then found out the extension’s js is isolated from the tab’s, so kinda lost here.

Any help would be much appreciated, thanks in advance.