create_document
Create a new Markdown document for a new topic, starting in review status. Search for an existing document first and extend it with apply_change instead of creating a duplicate.
Instructions
Create one Markdown document; it always starts as review.
Before creating, search for an existing document on the same topic and
extend it with apply_change instead; new files are for new topics only.
document_type:
article: one topic, merged from all sources, kept up to date in place;reference: notes on one external source (link + key excerpts, never the full original);research: a research conclusion worth keeping (not deferred/P2 notes);guide: repeatable steps;decision: a choice and its reasons;task(company): one task per file, content must contain## 任务描述## 解决思考## 解决方法## 结果## 链接;createdis the task date.
No status argument is accepted: a caller (including another agent) must
not be able to create content that already claims to be human-confirmed.
Confirming an existing document goes through apply_change.
created/updated are only for importing existing documents that must
keep their original dates; new content leaves them unset.
replaces: when merging several notes into one topic article, list the
old document paths here. They are deleted after the new file is written,
their sources may be re-listed in sources, and the merged body must
keep at least 70% of their combined length (drop duplicates, not ideas).
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": {
"scope": "<scope>",
"path": "<path>",
"title": "<title>",
"content": "<content>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tags | No | ||
| scope | Yes | ||
| title | Yes | ||
| series | No | ||
| content | Yes | ||
| created | No | ||
| sources | No | ||
| updated | No | ||
| replaces | No | ||
| document_type | No | article |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||