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

    Type Alias CursorUpdateExperimental

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    A session cursor upsert. A cursor names one position in the session's timeline.

    The first update for a cursorId MUST include anchor. The anchor is fixed after that, and later updates change only capabilities.

    capabilities and _meta have patch semantics: omission leaves the stored value unchanged, null clears it, and an object replaces capabilities as a whole. A concrete _meta object patches the stored metadata by top-level key instead of replacing it.

    See the Session Cursors RFD.

    type CursorUpdate = {
        cursorId: CursorId;
        capabilities?: CursorCapabilities | null;
        anchor?: CursorAnchor | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    cursorId: CursorId

    The Agent-owned ID of this cursor, unique within the session.

    capabilities?: CursorCapabilities | null

    The methods that currently accept this cursor.

    Omission leaves the capabilities unchanged, null clears them, and an object replaces the whole previous value. A new cursor starts with none.

    anchor?: CursorAnchor | null

    Where the cursor is, relative to an entity the Client holds.

    Required on the first update for a cursor. The Agent MUST NOT change it afterwards. A later update can omit it or repeat the same anchor. Omitted and null are equivalent and leave the stored anchor unchanged.

    _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 leaves the stored metadata unchanged. null clears it. An object patches the stored metadata by top-level key: keys it omits are unchanged, a key set to null is removed, and any other value replaces that key's stored value without merging nested objects. Beyond this patch rule, implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Metadata Patches