Write a report source safely
write_report_fileWrite UTF-8 content to a file in an active session only when the expected SHA-256 checksum matches, preventing unintended overwrites and conflicts.
Instructions
Write UTF-8 content only inside an active session and only when expected_sha256 matches. Use "new" for a new file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| session_id | Yes | Active sessionId returned by begin_edit_session or workflow_status | |
| expected_sha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| nextActions | Yes | ||
| workflowState | Yes |