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

    Type Alias RequestPermissionRequest

    Request for user permission to proceed with an operation.

    Sent when the Agent needs authorization before performing a sensitive operation.

    See protocol docs: Requesting Permission

    type RequestPermissionRequest = {
        sessionId: SessionId;
        title: string;
        description?: string | null;
        subject?: RequestPermissionSubject | null;
        options: PermissionOption[];
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    The session ID for this request.

    title: string

    Human-readable title shown with the permission prompt, in plain text.

    This title is specific to the permission prompt and does not update any subject's displayed title.

    description?: string | null

    Optional human-readable explanation of why permission is needed. May contain Markdown.

    This text is specific to the permission prompt and does not update any subject's displayed content. Omitted and null are equivalent and mean no separate permission description was provided.

    subject?: RequestPermissionSubject | null

    Optional structured context about the operation requiring permission.

    Omitted and null are equivalent and mean no structured subject was provided.

    options: PermissionOption[]

    Available permission options for the user to choose from. Must contain at least one option.

    _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