create_doc
Create a new attributed Markdown or HTML document at a given path, refuse overwriting existing files, and return the version needed for later edits.
Instructions
Create a new document, committed at once and attributed to you; refuses if the path exists. Pick the format by content: .md for prose, notes, recaps, specs (the default); .html for a self-contained styled page (deck, dashboard) with its own CSS/JS, shown as-is in a sandbox. Never put a whole HTML document in a ```html block of a .md: it would show as source. Returns the version edit_doc takes, and how the quotations it holds stand against the mind's files. Use create_inbox_item instead when the human should decide whether to keep it, edit_doc to change an existing doc.
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": {
"path": "<path>",
"content": "<content>",
"ai": "<ai>"
},
"name": "create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | Yes | Your AI family in lowercase (claude, chatgpt, gemini), not the model name. Attributes the change. | |
| path | Yes | Ends in .md or .html, e.g. notes/recap.md, projects/deck.html (not under inbox/ or remotes/). | |
| content | Yes | A .md: the full body, with an H1 title. A .html: a complete self-contained page. |