Save a doc's edits
save_docSaves the person's edits from the doc editor in the chat against the revision they started from.
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": {
"workspace": "<workspace>",
"docId": "<docId>",
"title": "<title>",
"content": "<content>",
"layout": "<layout>",
"baseRevision": "<baseRevision>",
"mutationId": "<mutationId>"
},
"name": "save_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Doc id from search, fetch or create_doc. | |
| title | Yes | ||
| layout | Yes | ||
| content | Yes | The paged document as Coline's editor holds it. | |
| workspace | Yes | Workspace slug from workspaces.list, e.g. "acme". | |
| mutationId | Yes | ||
| baseRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | Yes | ||
| updatedAt | Yes |