MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / startTool

Function startTool

packages/opencode-atomic-hooks/src/session.ts:215–218  ·  view source on GitHub ↗
(id: string, callId: string, now?: number)

Source from the content-addressed store, hash-verified

213 }
214
215 function startTool(id: string, callId: string, now?: number): void {
216 const session = get(id)
217 session.toolStartTimes.set(callId, now ?? Date.now())
218 }
219
220 function endTool(id: string, callId: string, now?: number): number | undefined {
221 const session = sessions.get(id)

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected