MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / tuc

Function tuc

src/utils/computerUse/wrapper.tsx:63–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61let currentToolUseContext: ToolUseContext | undefined;
62
63function tuc(): ToolUseContext {
64 // Safe: `binding` is only populated when `currentToolUseContext` is set.
65 // Called only from within `ctx` callbacks, which only fire during dispatch.
66 return currentToolUseContext!;
67}
68
69function formatLockHeld(holder: string): string {
70 return `Computer use is in use by another Claude session (${holder.slice(0, 8)}…). Wait for that session to finish or run /exit there.`;

Callers 2

buildSessionContextFunction · 0.85
runPermissionDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected