EU Parliament Monitor - API Documentation - v0.7.5
    Preparing search index...
    • Load pre-fetched feed data from a JSON file on disk.

      Agentic workflows fetch EP data via framework MCP tools but the TypeScript generator cannot access those tools directly. The workflow saves the MCP results to a JSON file and the generator reads them via this function, avoiding the need to manually construct article HTML.

      The file must contain a JSON object. The optional keys adoptedTexts, events, procedures, and mepUpdates are treated as arrays and default to empty arrays when missing (an empty object {} is valid).

      Parameters

      • filePath: string

        Absolute or relative path to the JSON file

      Returns BreakingNewsFeedData | undefined

      Parsed BreakingNewsFeedData, or undefined on any error