Retrieve Jupyter server CLI args from UI extension

Hi folks!

Is there any way to get the server’s config from the UI APIs?

More specifically, say I am running jupyter with jupyter lab --notebook-dir test/. In my extension I would like to have access to this config in order to take actions accordingly. I have dug into the JupyterFrontEnd interface and other similar ones but I have found not place where the server passes this information to the frontend.

Any help would be greatly appreciated,
Thanks!