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

Function resolveTableResource

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

Source from the content-addressed store, hash-verified

718 }
719}
720async function resolveTableResource(
721 tableId: string,
722 workspaceId: string
723): Promise<AgentContext | null> {
724 const table = await getTableById(tableId)
725 if (!table) return null
726 if (table.workspaceId !== workspaceId) return null
727 return {
728 type: 'active_resource',
729 tag: '@active_resource',
730 content: '',
731 path: canonicalTableVfsPath(table.name),
732 }
733}
734
735async function resolveScheduledTaskResource(
736 scheduleId: string,

Callers 2

processContextsServerFunction · 0.85

Calls 2

getTableByIdFunction · 0.90
canonicalTableVfsPathFunction · 0.90

Tested by

no test coverage detected