export_research_files
Export research artifacts to disk, including verified reports and raw evidence batches, with configurable file splitting and output options.
Instructions
[EXPORT] Automatically writes research artifacts to disk. It can expand and write every verified report chunk without asking the LLM to loop finalize manually, and it can also write every gathered raw-evidence batch even when verify has not passed yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | default | |
| outputDir | Yes | Directory where research export files will be written. Prefer an absolute path so the caller knows exactly where the artifacts landed. | |
| baseFileName | No | Base filename prefix for all written research artifacts. The helper sanitizes it into a filesystem-safe ASCII stem. | research_export |
| exportVerifiedReport | No | When true, automatically expands and writes the full verified report by looping all finalize chunks internally. This path remains blocked until verify has passed. | |
| exportRawEvidence | No | When true, writes every gathered research batch as raw evidence files even if verify has not passed, separating evidence capture from narrative approval. | |
| maxChunkChars | No | Maximum size for each written markdown file. Large batches are automatically split across multiple files when needed. | |
| overwrite | No | Whether existing export files may be overwritten. Defaults to false so exports do not silently clobber prior artifacts. | |
| finalSummary | No | Optional final summary override for verified report export. If omitted, the helper uses the stored pipeline summary or existing analysis and verification outputs. |