Update a document
tp_update_documentReplaces the text of an existing document and keeps its id, link, sharing settings, password and expiry. Use it when the user asks to change, fix, extend or rewrite a document that is already on the account, including one they have shared. markdown is the complete new text. The previous text is kept as a revision; the ten most recent revisions are kept. When the document is shared by link or with people, confirm: true is required, because its readers will see the new text; without it nothing changes and the response says who would see it. Sending the current text again changes nothing.
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>",
"markdown": "<markdown>"
},
"name": "tp_update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id from tp_list_documents. | |
| name | No | A new file name. Omit to keep the current one. | |
| confirm | No | Required when the document is shared by link or with people. Set true after the user has agreed that its readers will see the new text. | |
| markdown | Yes | The complete new text, as Markdown. |