Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Fetch full-text content for the top-N documents in docs and persist each to {outputDir}/full-text/{dok_id}.md.

      This function has filesystem side effects: it creates outputDir/full-text/ (including any missing parent directories) and writes one .md file per successfully fetched document.

      Documents that lack a resolvable dok_id are skipped. If the MCP call succeeds but returns no meaningful content (< FULL_TEXT_MIN_LENGTH chars), the outcome is recorded as success: false with an explanatory reason so the caller (and the analysis gate) can distinguish "not tried" from "tried but only metadata returned".

      Parameters

      Returns Promise<FullTextFetchOutcome[]>