文档列表(分页)
gwl_list_documentsLists document metadata by scope with folder, tag, author, and deleted filters, returning paginated results without full content.
Instructions
按范围列出文档元信息(不含正文),逐条判权后分页。 返回 {items,page,size,total,has_more};items 是 meta 视图,取正文用 gwl_get_document_by_id(不加浏览数)或 gwl_get_document(会 +1 浏览数)。 folder_id:0=根目录(默认)、-1=该范围下全部文件夹、正整数=指定文件夹。 deleted=1 只看回收站里的(需相应权限);author_id 只在 scope=public 生效。 tags 最多 8 个,tag_mode=all 表示同时命中,any 表示任一命中。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gwl_list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,从 1 开始。非法值由上游回落到 1,不报错。 | |
| size | No | 每页条数,1~100;超过 100 上游按 100 处理。 | |
| tags | No | 标签过滤(最多 8 个),上游按逗号解析。 | |
| scope | No | 文档范围,默认 public。 | public |
| deleted | No | 0=只看未删除(默认),1=只看已软删除。非法值由上游回落。 | |
| tag_mode | No | 标签命中方式:all=同时具备,any=任一具备。 | |
| author_id | No | 只看某作者的文档;仅 scope=public 生效。 | |
| folder_id | No | 文件夹过滤:0=根目录,-1=全部文件夹,正整数=指定文件夹。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||