Jupyterlab console:inject command

According to the docs, the console:inject command takes required arguments of code and path. I currently have a jupyterlite iframe REPL embedded in another application, and I am executing commands via the jupyter-iframe-commands extension as documented here.

Other console commands (e.g. console:prompt-to-bottomwhich doesn’t require a path argument) work fine, but I cannot get console:inject to work. I assume this is because I am specifying an incorrect path - it’s not clear to me what this path should be and where I can find it. Can anyone help me here? Thanks!