update_notebook
Update an existing notebook with new name, content, or file content. Requires current document version for optimistic locking.
Instructions
Update an existing notebook (WRITE). Uses PATCH /documents/{id} with multipart/form-data per the spec. Optimistic locking: you must supply the current document version. At least one of name, content, or contentPath must be provided. Requires DT_ENABLE_WRITES=true.
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": {
"id": "<id>",
"version": "<version>"
},
"name": "update_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Notebook document id. | |
| version | Yes | Current document version for optimistic locking (required by the spec). | |
| name | No | New display name (optional). | |
| content | No | New notebook content as a JSON object (optional). | |
| contentPath | No | Absolute or cwd-relative path to a JSON file whose contents become the new notebook content. Mutually exclusive with content. |