write_chapter
Write Markdown story content atomically to text.md. Optionally validate repository compliance after writing and return results without blocking.
Instructions
将正文写入指定故事(原子写入 text.md)。validate=true 时写入后立即执行仓库合规检查并返回结果(不阻断写入)
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": {
"folder": "<folder>",
"content": "<content>"
},
"name": "write_chapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | 故事文件夹名(如 01-故事A) | |
| content | Yes | 要写入的 Markdown 正文 | |
| validate | No | 写后是否执行合规检查(默认 false) |