按 id 读文档
gwl_get_document_by_idRead a document's full text by ID without increasing its view count and return its version for optimistic-lock updates; use this before editing.
Instructions
按文档 id 读取全文,不增加浏览数,是编辑前的推荐读法。 返回里的 version 就是乐观锁基线,更新时原样带回 data.version。 软删除的文档只有作者或超管能看到,其他人 404。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_id": "<doc_id>"
},
"name": "gwl_get_document_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | 文档 id(路径参数)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||