AIContextPayload interface exported

Last updated: 2026-03-05T10:53:28.867Z

Metrics

LOC: 17 Complexity: 1 Params: 0

Signature

interface AIContextPayload

Summary

Additional user-provided context for AI-driven form filling. Collected via the AI context modal in the popup.

Source Code

export interface AIContextPayload {
  /** Free-form text describing the person, scenario or data to fill */
  text?: string;
  /** CSV content already parsed into a readable text representation */
  csvText?: string;
  /** Audio transcript (from Web Speech API; may already be translated) */
  audioTranscript?: string;
  /** Image file as a base64 data URL (e.g. "data:image/png;base64,...") */
  imageDataUrl?: string;
  /** Extracted text content from an uploaded PDF */
  pdfText?: string;
  /**
   * PDF pages rendered to JPEG data URLs (up to 3 pages).
   * Sent as image blobs to the Chrome AI multimodal prompt.
   */
  pdfPageDataUrls?: string[];
}

No outgoing dependencies.

Impact (Incoming)

graph LR AIContextPayload["AIContextPayload"] FillableElement["FillableElement"] removeModal["removeModal"] setNativeValue["setNativeValue"] FillableElement -->|uses| AIContextPayload removeModal -->|uses| AIContextPayload setNativeValue -->|uses| AIContextPayload style AIContextPayload fill:#dbeafe,stroke:#2563eb,stroke-width:2px click AIContextPayload "0fc42100b4c63fc1.html" click FillableElement "2ecf5aaac3f668a8.html" click removeModal "5128383343d69d24.html" click setNativeValue "334bd99609d7c37c.html"
SourceType
FillableElement uses
removeModal uses
setNativeValue uses