Hi Chris, good question.
The Context API does not enable such, you have to be requesting from an element at or within to access. When thinking about such in a bigger relation, like the facts that you can have Multiple Workspace Contexts open, it makes good sense that such would require something to identify which you are looking to resolve.
In relation to what page the User is editing, you may be interested in the Property DataSet within, such exists for each Variant. Meaning two are present when in Split View. But maybe thats not relevant for you case.
There may be a need to know about the active Workspace from an Application Context/Global Context thing. This is not something we have at this moment, but maybe something we could implement one day.
With the abilities today my recommendation would be to create a Context of your own, of the type
workspaceContext
, such is initiated on same level as any Workspace Context.
For implementation details see the example implementation here:
https://github.com/umbraco/Umbraco-CMS/tree/contrib/src/Umbraco.Web.UI.Client/examples/workspace-context-counter
With the extension conditions you determine in which cases you like this one to appear.
Then such could communicate up to your Header App, to inform it about the Workspace evt. communicate two ways. Thats up to your implementation 🙂