dsh-novel-writer — 网文写作体检
v8.3.1Offline 22-tool Chinese web-novel audits, live chat writing with draft mirror, per-book cleanup.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
novel_books
列书库全部作品及章数/字数(只读)。
| Parameter | Type | Description |
|---|---|---|
root | string | 书库根 |
novel_chapters
列作品全部章节与字数(只读,含撞号提示)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
root | string | 书库根 |
novel_read
读某章带行号正文(支持分段,只读)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
chapter * | string | 章号/文件名/标题 |
limit | integer | 行数(默认400) |
offset | integer | 起始行(默认1) |
root | string | 书库根 |
novel_keywords
统计全书/单章高频词(二三字词与英文,不含单字)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
chapter | string | 章节(省=全书) |
root | string | 书库根 |
top | integer | 数量(默认20) |
novel_new_chapter
创建新章节文件(默认下一章)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
chapter | integer | 章号 |
content | string | 初始正文 |
plan | string | 写前具象计划(器物/动作/落点,不入正文) |
root | string | 书库根 |
title | string | 标题 |
novel_chapter_brief
开写包(只读):返回承接口/大纲/人物/伏笔/用语/基线/锚段/骨架/禁用与清单,写前先调。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
budget | string | compact省上下文/full全量 |
chapter | string | 目标章(默认next) |
root | string | 书库根 |
novel_lexicon
必用词表:管理专名与惯用词(书级覆盖 _global),优先用表内词。lexiconFirst 默认开,注入开写包。audit 只审必用词与替身,不含世界观禁用词(查禁词用 novel_continuity_check)。
| Parameter | Type | Description |
|---|---|---|
action * | string | 操作 |
aliases | 等价词 | |
all | boolean | delete清空(须true) |
avoid | 替身词 | |
book | string | 书名(global可省) |
chapter | string | audit章(all/省末章) |
enabled | boolean | 层/条启停 |
force | boolean | 损坏时强覆盖 |
kind | string | 类型(专名/偏好词/称呼/场景词/口头禅/其他/自定) |
limit | integer | 条数上限 |
newTerm | string | 新词名 |
note | string | 备注 |
offset | integer | 偏移 |
overwrite | boolean | 覆盖同名(默认true) |
priority | string | 优先级 |
query | string | 过滤词 |
replace | boolean | import整层替换 |
root | string | 书库根 |
scene | string | 适用场景 |
scope | string | 层(写book/list all) |
term | string | 目标词 |
terms | array | add/delete词数组(词|类型|场景|替身|备注) |
text | string | import/add文本(#注释) |
novel_import
批量导入原稿到novels/<书名>/(scan预览/apply执行)。
| Parameter | Type | Description |
|---|---|---|
src * | string | 原稿目录 |
book | string | 强制书名 |
files | array | 指定相对路径 |
mode | string | 模式 |
move | boolean | 移动(默认复制) |
recursive | boolean | 递归子目录 |
root | string | 书库根 |
novel_sentence_analysis
句式分析:九类句式、转移模板、句长、情感曲线与指纹(共缓存,受config控制)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
brief | boolean | 精简摘要 |
chapter | string | 章节(省=全书) |
curveSegments | integer | 曲线段数(20) |
fresh | boolean | 重算 |
maxSentences | integer | 采样上限(20000) |
root | string | 书库根 |
top | integer | 模板数(8) |
novel_sentence_config
读写插件与分析开关配置(get 查询 / set 修改)。
| Parameter | Type | Description |
|---|---|---|
action | string | 操作 |
autoAnalyze | boolean | 自动分析 |
chatThreshold | number | 聊天提问字数阈值(100~5000,0=默认) |
creationProfile | object | 原创设定(worldview/characters/forbidden/mainConflict/genre/extra);空对象 {} 表示清除 |
creationProfiles | object | 按书原创设定;空对象 {} 表示清除 |
enabled | boolean | 总开关 |
features | object | 功能开关(emotionCaveat/genreTheme/emotionComplexity/semanticEmbedding/semanticSearch/semanticStyle/semanticImplicit/rawWriting/webnovelVibe/lexiconFirst/chatWriting);rawWriting仅明确要求时… |
leanWorkflow | boolean | 精简工作流(省token) |
promptScene | string | full档场景 |
styleTolerance | object | 容差;空对象 {} 表示清除 |
systemPromptMode | string | 提示档位 |
tools | object | 工具开关({novel_*:bool}) |
novel_style_check
风格自检:对比单章与全书指纹输出偏差(改稿用 fix_plan,全书画像用 style_report)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
chapter * | string | 章节 |
root | string | 书库根 |
novel_fix_plan
改稿台(不生成正文):plan待办/verify复测/mark标记/audit严格对账/audit_brief独立审计/audit_verify复核claims。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
chapter * | string | 章节 |
action | string | 操作(默认plan) |
claims | array | audit_verify声明数组(逐条校验原文) |
itemId | string | 待办id |
root | string | 书库根 |
state | string | 状态 |
novel_plot
伏笔/剧情线表(open/done)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
absenceThreshold | integer | graph缺席阈值(默认5) |
action | string | 操作(graph为只读跨章结构视图) |
chapter | string | 章节 |
content | string | 内容 |
id | string | 伏笔id |
locations | array | 地点 |
note | string | 备注 |
payoffCondition | string | 回收条件 |
priority | string | 优先级 |
relatedCharacters | array | 人物 |
root | string | 书库根 |
status | string | 状态(回收优先done) |
type | string | 类型 |
novel_settings
五表设定管理(character/location/item/timeline/worldview)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
action | string | 操作(scan提候选/detect判基准/packs列题材包) |
alias | array | 别名 |
allowWords | array | 本书豁免词(仅限本书) |
bannedWords | array | 禁用词 |
basis | string | 文化基准 |
category | string | 表类别(detect固定worldview) |
chapter | string | 章节 |
day | string | timeline时间点(改名传name+day) |
description | string | 描述 |
event | string | 事件 |
firstSeen | string | 首现章 |
lastSeen | string | 近现章 |
name | string | 条目名(timeline用day) |
notes | string | 备注 |
owner | string | 持有者 |
pack | string | 题材包ID(worldview) |
recommended | object | 替代词映射 |
relationships | string | 关系 |
ritual | string | 仪式规范 |
root | string | 书库根 |
speechStyle | object | 语用JSON(title/honorBad/ritualBadPatterns/tone) |
status | string | 状态 |
traits | string | 性格外貌 |
novel_style_report
全书6维风格画像(单章用style_check,技法用sentence_analysis)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
action | string | report(默认)/get |
aiJudgment | string | AI风格判断 |
brief | boolean | 精简摘要 |
root | string | 书库根 |
novel_summary
章节摘要管理。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
action | string | 操作(默认list) |
chapter | string | 章节 |
keyEvents | array | 关键事件 |
keySettings | array | 关键设定 |
root | string | 书库根 |
summary | string | 摘要(200-500字) |
novel_continuity_check
连贯性审计:全书矛盾与用语冲突;chapter查衔接及禁词/语用(styleCandidates);outline大纲;ooc哨兵(互斥)。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
chapter | string | 衔接章(兼查禁词与speechStyle) |
ooc | boolean | OOC哨兵 |
outline | boolean | 大纲对照 |
root | string | 书库根 |
novel_semantic_search
本地语义检索(0 token):自然语言搜相关段落。
| Parameter | Type | Description |
|---|---|---|
book * | string | 书名 |
query * | string | 语义描述 |
root | string | 书库根 |
top | integer | 条数(默认5,上限10) |
novel_outline
维护原创小说的创作资料(novels/创作资料/<书名>/):创作设定/主要人物/次要人物/剧情大纲/钩子记录/创作状态卡的初始化、读取与更新。
| Parameter | Type | Description |
|---|---|---|
action * | string | init=初始化创作资料;read=读文件(bible/characters-main/characters-minor/outline/hooks/status);bible=写入创作设定;character=登记/提升人物;chapter=补大纲方向行;h… |
book * | string | 书名(novels/创作资料 下的子目录名)。 |
body | string | hook 时:本章结尾钩子(状态/悬念/时间场景)。 |
content | string | bible(创作设定全文)/ status(状态卡全文)时用。 |
description | string | character 时:人物简介(目标/动机/弱点/说话方式)。 |
file | string | read 时指定(bible/characters-main/characters-minor/outline/hooks/status,省略=status)。 |
name | string | character 时:人物名。 |
number | number | chapter/hook 时:章节号。 |
role | string | character 时:main=主要人物 / minor=次要人物。 |
root | string | 章节库根目录。 |
title | string | chapter 时:本章标题/方向(一行)。 |
novel_diagnose
诊断报告:读日志体检书库与数据目录(只含元数据,不含正文)。
| Parameter | Type | Description |
|---|---|---|
action | string | report/events/clear |
book | string | 按书过滤 |
days | integer | 天数(7) |
root | string | 书库根 |
novel_delete_book
按书删/清(含回收站):默认preview预览;apply移入回收站(keys选部分);restore恢复;purge彻底删。不动全局/设置/日志。
| Parameter | Type | Description |
|---|---|---|
action | string | 操作 |
book | string | 书名 |
keys | array | 只清指定targets[].key(apply) |
root | string | 书库根 |
trashId | string | 回收站id |
novel_draft
聊天写作草稿镜像(只追加不读改):提交当前段到.novel-writer/drafts/<书>/。continue续写;ask_user将question+combinedText问用户。
| Parameter | Type | Description |
|---|---|---|
action * | string | commit |
book * | string | 书名 |
text * | string | 本段正文(勿整章) |
chapter | string | 章标识 |
root | string | 书库根 |