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

    Type Alias CancelTerminalRequest

    Request parameters for cancelling one terminal.

    Clients MUST NOT send it unless the terminal 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 terminal_update that sets exitStatus. Cancelling stops the process but does not release the terminal, and does not change the status of a tool call that references it.

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

    See protocol docs: Cancelling Terminals

    type CancelTerminalRequest = {
        sessionId: SessionId;
        terminalId: TerminalId;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    The ID of the session that owns the terminal.

    terminalId: TerminalId

    The ID of the terminal 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