apply_rewrite
Writes an approved rewrite into the manuscript file after diff approval, preserving encoding, line endings, and creating a backup.
Instructions
Write a proposed rewrite into the manuscript file (atomic write, original encoding and line endings kept, backup in .citecheck/backups). Only call after the user approved the diff.
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": {
"rewrite_id": "<rewrite_id>"
},
"name": "apply_rewrite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rewrite_id | Yes |