Apply Workspace to Search - Whether In Javascript Or Not

Request 2/2: I’d like to be able to apply a specific workspace’s semantics in a Javascript query() invocation. Similarly, it’d be nice to be able to restrict a UI search to a specific workspace.