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

Function resolveFolderResource

apps/sim/lib/copilot/chat/process-contents.ts:801–813  ·  view source on GitHub ↗
(
  folderId: string,
  workspaceId: string
)

Source from the content-addressed store, hash-verified

799}
800
801async function resolveFolderResource(
802 folderId: string,
803 workspaceId: string
804): Promise<AgentContext | null> {
805 const folderPath = await resolveWorkflowFolderPath(workspaceId, folderId)
806 if (!folderPath) return null
807 return {
808 type: 'active_resource',
809 tag: '@active_resource',
810 content: '',
811 path: `workflows/${folderPath}`,
812 }
813}

Callers 2

processContextsServerFunction · 0.85

Calls 1

Tested by

no test coverage detected