IFClite TypeScript API
    Preparing search index...

    Interface ToolContext

    interface ToolContext {
        config: ServerConfig;
        currentScope?: () => AuthScope;
        log: Logger;
        progress: ProgressReporter;
        registry: ModelRegistry;
        scope: AuthScope;
        session?: SessionIdentity;
        signal: AbortSignal;
        viewer?: ViewerManager;
    }
    Index
    config: ServerConfig

    Server-wide config (read-only flag, bSDD endpoint, allowed paths, …).

    currentScope?: () => AuthScope

    Live authorization for operations that await source materialization.

    log: Logger
    registry: ModelRegistry
    scope: AuthScope
    session?: SessionIdentity

    Transport session + principal; absent only in hand-rolled test contexts.

    signal: AbortSignal

    Honoured by long-running tools; aborts when client cancels.

    viewer?: ViewerManager

    Optional: present when the server has a managed in-process viewer.