ai11y docs
    Preparing search index...

    Interface Ai11yClient

    Client interface for interacting with the AI accessibility system

    interface Ai11yClient {
        act(instruction: Instruction): void;
        describe(): Ai11yContext;
        reportError(
            error: Error,
            meta?: { markerId?: string; surface?: string },
        ): void;
        track(event: string, payload?: unknown): void;
    }
    Index

    Methods

    • Executes an instruction on the UI

      Parameters

      Returns void

    • Describes the current UI context (markers, route, state, errors)

      Returns Ai11yContext

    • Reports an error to the system

      Parameters

      • error: Error
      • Optionalmeta: { markerId?: string; surface?: string }

      Returns void

    • Tracks a custom event

      Parameters

      • event: string
      • Optionalpayload: unknown

      Returns void