mnapis

按原文找位置

Body {text(逐字照抄), page(必填), navigate?}。返回 {found,page,matchedText,algorithm,score},须核对 matchedText。no_match 多为改写原文;page_unreadable 为页不可读。navigate:true 仅滚动(不高亮),跨文档不跳(navigated:false + different_document_open)。

POST
/documents/{id}/locate

Body {text(逐字照抄), page(必填), navigate?}。返回 {found,page,matchedText,algorithm,score},须核对 matchedText。no_match 多为改写原文;page_unreadable 为页不可读。navigate:true 仅滚动(不高亮),跨文档不跳(navigated:false + different_document_open)。

Authorization

bearerAuth
AuthorizationBearer <token>

安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。

In: header

Path Parameters

id*string

文档 bookmd5

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/documents/string/locate" \  -H "Content-Type: application/json" \  -d '{    "text": "string",    "page": 0  }'
Empty