Function: toolSignal()
> toolSignal(request): AbortSignal | undefined
Defined in: mcp/src/tools.ts:63
The abort signal of the MCP tool call a handler is running for, or undefined for a plain HTTP request. It fires on notifications/cancelled (from the same client session) — a long handler can check it and stop early. The tool call itself answers "cancelled" as soon as it fires either way.
Parameters
request
Returns
AbortSignal | undefined