按 slug 读文档
gwl_get_documentRead a document's full content by slug with visibility-based field masking; each successful read increments its view count, so use the ID-based variant when reading for edits.
Instructions
按 slug 读取文档全文(返回字段随可见性做权限位掩码)。 ⚠️ 有副作用:每次命中都会 view_count + 1,因此标记为非幂等。 只是要读内容做编辑时,请改用 gwl_get_document_by_id(不加浏览数)。 不存在 404;无权查看 403。
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": {
"slug": "<slug>"
},
"name": "gwl_get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | 文档 slug(路径参数,会自动做 URL 编码)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||