write_report
Write Markdown content to a specified file path with integrity verification via SHA-256. Supports conditional overwrite to prevent accidental data loss.
Instructions
Write content to path and return the SHA-256 of the result.
The function is the foundational primitive the
re-report skill uses to commit report fragments to
Output/<run-id>/<file>.md. The returned SHA-256
is the integrity hash the run manifest records.
Args:
path: file to write (must not contain .. or
target a system directory)
content: text content (typically Markdown)
overwrite: if True, overwrite an existing file;
if False, refuse to overwrite
Returns::
{
"path": "...",
"size": N,
"sha256": "<64 hex chars>",
"overwritten": bool,
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| overwrite | No |