Add to a WikiDrive document
wikidrive_add_to_docAppend new Markdown text to an existing WikiDrive document at the end or under a specified heading, creating the section if missing, without altering existing content.
Instructions
Add text to one of the user's WikiDrive documents without changing anything already there: at the end of a section named by heading (a new section when that heading does not exist yet), or at the end of the document. Use it when the user asks to add to a document, or, when automatic documents are on, to add new knowledge from this work to a document an AI made that wikidrive_recall or wikidrive_search showed (why 'auto'); a document the user wrote needs why 'asked'. Send only the new text. Same content rules as wikidrive_create_doc. Documents that send every change to other people at once are not changed here. Afterwards tell the user the returned message in one line, in the user's language; it says how to undo.
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": {
"prompt_id": "<prompt_id>",
"text": "<text>",
"why": "<why>",
"idempotency_key": "<idempotency_key>"
},
"name": "wikidrive_add_to_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | Yes | 'asked' when the user asked for this in this conversation; 'auto' under the user's automatic-documents setting (only for documents an AI made). | |
| text | Yes | Only the new Markdown to add, in the user's language; never the whole document. Keep each heading at most 120 characters, so it can be named later. | |
| heading | No | Optional: the section to add to, by its heading text without the leading #s (e.g. 'Decisions'). A new ## section is made when there is none. Omit it to add at the end. | |
| prompt_id | Yes | The document's prompt_id from wikidrive_recall, wikidrive_search, wikidrive_open or an earlier document message. | |
| idempotency_key | Yes | A new random key (e.g. a UUID) for each new save; reuse it only to retry the same save after an unclear result. |