MCPcopy Index your code
hub / github.com/simstudioai/sim / getWorkflowById

Function getWorkflowById

apps/sim/hooks/queries/utils/workflow-cache.ts:23–29  ·  view source on GitHub ↗
(
  workspaceId: string,
  workflowId: string,
  scope: WorkflowQueryScope = 'active'
)

Source from the content-addressed store, hash-verified

21 * Reads a single workflow by id from the React Query cache.
22 */
23export function getWorkflowById(
24 workspaceId: string,
25 workflowId: string,
26 scope: WorkflowQueryScope = 'active'
27): WorkflowMetadata | undefined {
28 return getWorkflows(workspaceId, scope).find((workflow) => workflow.id === workflowId)
29}

Callers 4

useChatFunction · 0.90
selectors.tsFile · 0.90

Calls 1

getWorkflowsFunction · 0.85

Tested by

no test coverage detected