/** * What the server knows about the tool call being handled right now. * * Carried by AsyncLocalStorage rather than threaded through every tool's * options: the cache scope needs it deep inside tools that never see the MCP * request, and an argument would have to be added to each of them. */ import { AsyncLocalStorage } from 'async_hooks'; export interface CallContext { /** Claude Code's `_meta["claudecode/toolUseId"]` for this call, if sent. */ toolUseId?: string; } export declare const callContext: AsyncLocalStorage; /** The `claudecode/toolUseId` a `tools/call` request carried, if any. */ export declare function toolUseIdFrom(meta: unknown): string | undefined; //# sourceMappingURL=call-context.d.ts.map