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,
}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"content": "<content>"
},
"name": "write_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| overwrite | No |