ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias CancelToolCallRequest

    Request parameters for cancelling one tool call.

    Clients MUST NOT send it unless the tool call currently advertises capabilities.cancel.

    The Agent responds once it has accepted the cancellation. The response does not mean the work has stopped. The Agent confirms it with a tool_call_update to a final status: normally cancelled, or completed or failed if the work finished first.

    The Agent responds with -32602 if the tool call is unknown, already final, or not cancellable. Cancelling a tool call does not change the foreground state by itself.

    See protocol docs: Cancelling Tool Calls

    type CancelToolCallRequest = {
        sessionId: SessionId;
        toolCallId: ToolCallId;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    The ID of the session that owns the tool call.

    toolCallId: ToolCallId

    The ID of the tool call to cancel.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility