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.
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": {
"session_id": "<session_id>",
"path": "<path>",
"content": "<content>",
"expected_sha256": "<expected_sha256>"
},
"name": "write_report_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 |