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

Method endTool

packages/opencode-atomic-hooks/src/session.ts:153–153  ·  view source on GitHub ↗

* Complete a tool invocation and return the elapsed duration. * * Removes the start time entry from the session. If the tool call * was not previously tracked (e.g., plugin restarted mid-call), * returns `undefined`. * * @param id - Session ID * @param callId - Unique tool c

(id: string, callId: string, now?: number)

Source from the content-addressed store, hash-verified

151 * @returns Elapsed time in milliseconds, or `undefined`
152 */
153 endTool(id: string, callId: string, now?: number): number | undefined
154
155 /**
156 * Return the number of tracked sessions.

Callers 2

createAfterToolHandlerFunction · 0.80
session.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected