dsh-novel-writer
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DSH_NOVEL_WRITER_ROOT | No | Path to the novel library root directory. Overrides the current working directory. If not set, defaults to the current working directory unless --root is provided via command line. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| novel_booksA | 列出小说章节库中的全部作品(novels 文件夹下的子目录),含章节数与总字数。只读。 |
| novel_chaptersA | 列出某部作品的全部章节:章号、标题、字数、行数、更新时间。只读;若存在同章号多文件,列表末尾会给出撞号分组提示。 |
| novel_readA | 阅读某部作品的某个章节,返回带行号的正文(含字数统计)。可用 offset/limit 分段读取长章节。只读:不写任何文件、不改动任何数据。 |
| novel_keywordsC | 统计某部作品(或单个章节)中出现频率较高的关键词:中文相邻二字/三字词组与英文词(novel_keywords 输出不含单字)。 |
| novel_new_chapterB | 为某部作品创建新章节文件(默认自动取下一个章号)。可指定标题与初始正文。 |
| novel_chapter_briefA | 开写包:一次调用装配出「写这一章需要的一切」——上一章结尾原文(承接口)、本章大纲方向、相关人物卡、待回收伏笔(含埋设距离)、世界观用语规范、六维风格基线、原著锚段与句式骨架、本章禁用清单与开写清单。只读不写盘(仅复用既有分析缓存)。写新章前应先调它,而不是逐个工具去翻。 |
| novel_lexiconA | 必用词表:登记「某场景必须使用的专有名词 / 作者习惯用词」,让 AI 优先用表内词写作,而不是退回自己惯用的通用说法。两层存储(书级同名覆盖全局):全局层 _global 放跨书惯用词,书级层放本书专名。action:list=查看(默认合并两层)/ add=批量登记(terms 数组或 text 文本,一次可几百条)/ update=改单条(含改名 newTerm、单条停用)/ delete=删除(terms 指定,或 all=true 清空某层)/ import=文本批量导入(text=每行一条: |
| novel_importA | 批量导入原稿件:扫描文件夹自动识别书名/章号并分组,可复制/移动到 novels/<书名>/ 分类存放(scan 预览 / apply 执行)。 |
| novel_sentence_analysisA | 句式模式分析:统计某部作品(或单章)的句式分布(陈述/环境/心理/对话/疑问/反问/感叹/祈使/省略留白九类)、句式排列规律(转移、高频模板、段首段尾、按章节的压缩节奏序列)、段落结构、句长分布、情感曲线、风格指纹与节奏建议,用于快速掌握作者的写作习惯、主观情感并参考其叙事节奏。【问「这本书是怎么写的」时用它】——它与 novel_style_check(问「我这一章写得像不像」)、novel_style_report(问「这本书是什么风格」)共用同一套引擎与缓存,三者是不同的问题、不是重复的工具。受 UI 开关控制,可先用 novel_sentence_config 查看状态。 |
| novel_sentence_configB | 查看或修改句式模式分析的开关状态:enabled(分析功能是否可用)、autoAnalyze(分析作品时是否主动使用)、systemPromptMode(系统提示词档位 off/brief/full)、promptScene(提示词场景 general/writing/revising/auditing/setup,决定完整档下注入哪一套流程)与 leanWorkflow(精简工作流:打开后只按需调用工具,省 token)。 |
| novel_style_checkA | 风格自检:对比某章节与全书其他章节的风格指纹(句式分布/句长/情绪),输出相似度与偏差清单。【问「我这一章写得像不像全书」时用它】——要可执行的改稿待办请接着用 novel_fix_plan,要全书风格画像用 novel_style_report,要看写作手法用 novel_sentence_analysis。 |
| novel_fix_planB | 改稿台:把风格诊断变成按优先级排好的待办清单——每条含原句位置(行号区间 + 原文)、当前值与目标值、可参照的原著锚段、以及改写方向。action=plan 生成清单 / verify 对当前正文复测(看哪些已回到带内)/ mark 标记单项(需 itemId + state)/ audit 严格对账(只报能举证的违约:必用词、禁用词、套话、原地打转、大纲兑现、章末收束、裸台词、伏笔账)/ audit_brief 生成给**独立 AI(无写作上下文)**的审计任务书 / audit_verify 复核它交回的 claims(编造的行号与原文会被判废)。只给方向不给句子:本插件不生成正文。 |
| novel_plotC | 伏笔/剧情线登记表:维护某部作品的伏笔与剧情钩子(open 待回收 / done 已回收)。 |
| novel_settingsB | 设定管理(五张表:人物/地点/道具/时间线/世界观用语规范),list/add/update/delete/scan 按 category 维护,detect 自动判断文化基准。 |
| novel_style_reportA | 风格画像报告:聚合 6 维测量数据(指纹/词汇/题材/情感/氛围 12 轴/语义距离)供 AI 判断风格。【问「这本书是什么风格」时用它】——它给的是全书画像而非单章判定(那是 novel_style_check),也不是写作手法拆解(那是 novel_sentence_analysis)。 |
| novel_summaryB | 章节摘要(模型生成、插件存储):读摘要回忆剧情、避免重读。add/update/get/list/delete 按章节管理。 |
| novel_continuity_checkA | 连贯性审计:对照设定表扫描全书,输出矛盾候选(数字口径/人物缺场/别名/设定重复/用语与语用冲突)供修正。传 chapter 做与上一章的衔接审计,并同时给出该章的用语/语用命中(世界观禁词与 speechStyle 规范,独立放在 styleCandidates);outline / ooc 是各自独立的哨兵模式(三者互斥)。返回体的 checklist 列出本次审计覆盖与未覆盖的维度(未登记语用规范、未启用大纲对照等盲区都会写明)——「0 条候选」不等于没问题。 |
| novel_semantic_searchB | 语义检索(本地 embedding,0 token):自然语言检索全书语义相关段落,无关键词也能命中。 |
| novel_outlineC | 维护原创小说的创作资料(novels/创作资料/<书名>/):创作设定/主要人物/次要人物/剧情大纲/钩子记录/创作状态卡的初始化、读取与更新。 |
| novel_diagnoseA | 诊断报告:读本地事件日志 + 体检书库根与数据目录,把「平时看不出来的问题」讲成人话——近期工具调用/降级/失败的聚合、高频失败类型、书库根与目录结构是否正常、以及可执行的建议。用于排查「面板列不出书」「某个功能好像没生效」「报错但看不出原因」这类问题。报告只含元数据(工具名/书名/章号/状态/耗时/计数),绝不含正文。 |
| novel_delete_bookA | 按书删除/清理(含回收站):删掉一本书的正文、创作资料、设定库条目与关联资料(伏笔/设定表/摘要/必用词表/风格基线/分析缓存/改稿与审计报告/风格画像/语义索引,以及旧版本遗留的平铺伏笔表)。默认只预览(列出将清理的位置与体积,不动磁盘), |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 21 tools
The three style tools (novel_sentence_analysis / novel_style_check / novel_style_report) are explicitly framed as different questions, which is excellent, but real overlap remains elsewhere: novel_settings (characters/locations/timeline tables) vs novel_outline (主要人物/次要人物/剧情大纲/钩子记录) vs novel_plot (伏笔/剧情钩子) all store overlapping book metadata, and novel_keywords vs novel_lexicon scan both extract candidate terms from text. The descriptions do heavy lifting to explain boundaries (e.g. the lexicon audit vs continuity_check disclaimer), which mitigates but does not remove the confusion.
Every tool uses the same novel_ snake_case prefix, so the set is immediately recognizable and predictable. However, names are noun/resource-oriented (novel_settings, novel_chapters, novel_outline) rather than verb_noun, so the action is hidden inside parameters instead of the tool name, which is a minor deviation from the ideal pattern.
21 tools sits in the heavy band, and several are thin single-purpose entries (novel_sentence_config is just a toggle reader, novel_books/novel_chapters/novel_read are three separate read paths). The domain is genuinely broad (writing, style analysis, continuity, import, diagnostics), so most tools earn their place, but consolidation is feasible.
Coverage is unusually thorough: chapter creation/reading/listing, bulk import, book-level deletion with trash, settings and outline CRUD, plot hooks, summaries, lexicon, semantic search, multiple audits and a diagnostics tool. The main gap is chapter-level mutation—there is no tool to update/replace/delete an individual chapter's text or rename it (only whole-book deletion), which forces workarounds for revisions.