check_write_session
Performs a read-only preflight check to verify project identity, state hash, and optional chapter context before allowing write operations on a novel project.
Instructions
Read-only preflight before writer tools mutate .novel-agent state. Checks project_id, project-state sha256, and optional target chapter context hash from prepare_chapter_session.
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": {
"project_dir": "<project_dir>"
},
"name": "check_write_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| chapter | No | ||
| project_dir | Yes | ||
| expected_project_id | No | ||
| expected_context_hash | No | ||
| expected_state_sha256 | No |