Update Space Document Tool
update-space-documentUse this when the user wants to replace or update the markdown content/title of an existing Space document. State-changing and content-destructive: writes the new document content directly after authorization, including in a public Space where the result is publicly accessible. Read the document first when preserving existing content matters.
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": {
"space_id": "<space_id>",
"document_id": "<document_id>"
},
"name": "update-space-document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The type of content being provided (blank or markdown) | |
| title | No | The new title of the document | |
| content | No | The new content of the document (markdown or plain text) | |
| space_id | Yes | The numeric ID of the space containing the document. Call list-spaces first. | |
| parent_id | No | The numeric ID of the parent folder (null to move to root) | |
| document_id | Yes | The numeric ID of the document to update |