Agent Client Protocol - v1.2.1
    Preparing search index...

    Type Alias DidFocusDocumentNotification

    Notification sent when a file becomes the active editor tab.

    type DidFocusDocumentNotification = {
        sessionId: SessionId;
        uri: string;
        version: number;
        position: Position;
        visibleRange: Range;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    The session ID for this notification.

    uri: string

    The URI of the focused document.

    version: number

    The version number of the document.

    position: Position

    The current cursor position.

    visibleRange: Range

    The portion of the file currently visible in the editor viewport.

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

    The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.

    See protocol docs: Extensibility