Query workflow running on a different client with the workflow id

You should be able to do the same via external workflow handle (inside workflow code), for example:

const external = await workflow.getExternalWorkflowHandle(workflowId);
try {
  await external.signal(...);
} catch (err) {
 // ...
}