写 AI 目录 / 切回原始目录
写:{entries:[{title,page,level(0-7),anchor?}], confirm:true},页码须递增,越级静默钳(adjustedLevels)。落 AI 目录位,原目录无损。回退:{useOriginal:true,confirm:true} 切回原始;{useAI:true,confirm:true} 切回 AI。快照救不了目录。真 dry-run(不带 confirm 回 422 + details.wouldWrite)。
写:{entries:[{title,page,level(0-7),anchor?}], confirm:true},页码须递增,越级静默钳(adjustedLevels)。落 AI 目录位,原目录无损。回退:{useOriginal:true,confirm:true} 切回原始;{useAI:true,confirm:true} 切回 AI。快照救不了目录。真 dry-run(不带 confirm 回 422 + details.wouldWrite)。
Authorization
bearerAuth 安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
文档 bookmd5
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/documents/string/toc" \ -H "Content-Type: application/json" \ -d '{ "confirm": true }'按原文找位置 POST
Body {text(逐字照抄), page(必填), navigate?}。返回 {found,page,matchedText,algorithm,score},须核对 matchedText。no_match 多为改写原文;page_unreadable 为页不可读。navigate:true 仅滚动(不高亮),跨文档不跳(navigated:false + different_document_open)。
读卡片二进制项 GET
?maxEdge=64–4096(默认 2048)&layers=composite|base(0.42 起,base 省旧 mask 位图,按 occlusionBaseContentPath 用)。摘录/插图/手写回合成图;音视频回原始二进制。MCP mn_call 中图片以 image 内容返回。