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_planA | 改稿台:把风格诊断变成按优先级排好的待办清单——每条含原句位置(行号区间 + 原文)、当前值与目标值、可参照的原著锚段、以及改写方向。action=plan 生成清单 / verify 对当前正文复测(看哪些已回到带内)/ mark 标记单项(需 itemId + state)。只给方向不给句子:本插件不生成正文。 |
| 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 | 诊断报告:读本地事件日志 + 体检书库根与数据目录,把「平时看不出来的问题」讲成人话——近期工具调用/降级/失败的聚合、高频失败类型、书库根与目录结构是否正常、以及可执行的建议。用于排查「面板列不出书」「某个功能好像没生效」「报错但看不出原因」这类问题。报告只含元数据(工具名/书名/章号/状态/耗时/计数),绝不含正文。 |
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 20 tools
Most tools target clearly distinct purposes, and the descriptions go out of their way to delineate boundaries (e.g., the three style tools explicitly state they answer different questions). However, there is genuine surface overlap between novel_settings and novel_outline (both manage characters/settings) and between novel_plot and novel_outline's hook records, which could cause misselection.
All 20 tools share a uniform novel_ snake_case prefix, which is highly predictable. The only deviation is a mix of noun-style names (novel_books, novel_chapters, novel_plot) and verb/action names (novel_read, novel_import, novel_diagnose, novel_new_chapter), but the convention is still readable.
20 tools is slightly heavy for the 3-15 sweet spot, but for a full novel-writing workflow each tool maps to a distinct function (listing, reading, importing, style analysis suite, continuity, settings CRUD). Nothing feels redundant enough to warrant a lower score.
Coverage is broad: book/chapter listing, reading, creation, import, settings/lexicon/summary/plot CRUD, plus a rich analysis and auditing surface. The notable gap is the absence of an explicit chapter content update/delete/write tool, though creation with initial content and the diagnostic/verify actions partly compensate.