创建文档
gwl_create_documentCreate a Markdown document with a required title and optional slug, content, visibility, and folder, returning version 1 details. Check existing documents before retrying after a network failure.
Instructions
创建一篇文档,返回文档详情(含 content,version=1)。 title 必填非空;slug 省略时上游按毫秒时间戳自动生成,已占用则 400。 写入范围(visibility/owning/folder_id/permission_bits)由服务端做写边界校验,越界返回 403;folder_id 不存在返回 400。 本工具不幂等:网络失败时不要盲目重试,先用 gwl_list_my_documents 确认是否已经建过。
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": {
"title": "<title>"
},
"name": "gwl_create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| slug | No | 自定义 slug(全站唯一)。省略则自动生成。 | |
| title | Yes | 标题(1~200 个字符)。 | |
| owning | No | ||
| content | No | 文档正文(Markdown)。 | |
| summary | No | ||
| folder_id | No | 归属文件夹 id。省略=根目录(0)。 | |
| visibility | No | ||
| permission_bits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||