Update doc
update_docChange a doc's text and nothing else in it. One passage: old_text and new_text. Add to the end: append_text. The whole body: content and updated_at from your read_doc, refused when anyone edited it since, so you never overwrite the team. The text it replaces stays in the doc's version history. Presentations and storyboards change only through a task.
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": {
"doc_id": "<doc_id>"
},
"name": "update_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | A doc id from get_task or list_space. | |
| content | No | The new whole doc body as Markdown. | |
| new_text | No | What replaces old_text. Empty deletes it. | |
| old_text | No | The passage, copied exactly from read_doc. It must appear once: add nearby words if it repeats. | |
| updated_at | No | updated_at from your read_doc. Needed with content; otherwise it refuses a doc edited since. | |
| append_text | No | Markdown to add at the end of the doc. |