Member Junction
    Preparing search index...

    Inputs accepted by BuildAppContextSnapshot. Looser shape than AppContextSnapshot so callers can omit pieces they don't have — the builder fills in safe defaults.

    App.Name is the only truly required field; without it, the consumer (the agent's prompt template) won't render an app-context section.

    interface AppContextSnapshotInputs {
        ActiveNavItem?: {
            Description?: string;
            Name: string;
            ResourceType?: string;
        };
        AdditionalContext?: Record<string, unknown>;
        App: { Description?: string; Name: string };
        Capabilities?: {
            Agents?: AppContextAgentRef[];
            Tools?: ClientToolMetadata[];
        };
        NavigableApps?: readonly { Description?: string; Name: string }[];
        OtherNavItems?: readonly { Description?: string; Name: string }[];
        User?: { Name?: string; Roles?: readonly string[] };
        View?: {
            FreeText?: string;
            Selection?: { EntityName?: string; RecordIDs?: string[] };
            VisibleEntities?: string[];
        };
    }
    Index

    Properties

    ActiveNavItem?: { Description?: string; Name: string; ResourceType?: string }
    AdditionalContext?: Record<string, unknown>
    App: { Description?: string; Name: string }
    Capabilities?: { Agents?: AppContextAgentRef[]; Tools?: ClientToolMetadata[] }

    Type Declaration

    • OptionalAgents?: AppContextAgentRef[]

      Currently-valid invoke_agent delegation targets.

    • OptionalTools?: ClientToolMetadata[]

      Currently-valid client tools (resolved by the unified client-tool resolver).

    NavigableApps?: readonly { Description?: string; Name: string }[]
    OtherNavItems?: readonly { Description?: string; Name: string }[]
    User?: { Name?: string; Roles?: readonly string[] }
    View?: {
        FreeText?: string;
        Selection?: { EntityName?: string; RecordIDs?: string[] };
        VisibleEntities?: string[];
    }

    Type Declaration

    • OptionalFreeText?: string

      Free-text the surface wants the agent to know ("editing form X, field Y").

    • OptionalSelection?: { EntityName?: string; RecordIDs?: string[] }

      The user's current selection, if any.

    • OptionalVisibleEntities?: string[]

      Entity names currently visible on screen.