I’m trying to get the text from Monaco, an editor that runs on a webpage.
I have something that works from the browser development tools on a regular computer also with Safari on the phone, but I cannot get the same thing to work from the Shortcuts action extension.
In a very quick scan of the source I can see some references in the JavaScript to iFrames and in the DOM. Perhaps the variable is only available for reference within the scope of the frame?
Somehow things assigned to window global variables is inaccessible in the action extension. I looks like you are mainly supposed to access through document.