AIContextPayload interface exported
Last updated: 2026-03-05T10:53:28.867Z
Location
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)
| Source | Type |
|---|---|
| FillableElement | uses |
| removeModal | uses |
| setNativeValue | uses |