Rename a document or tab
rename_documentRename a document, or (with tabId) one of its tabs. Non-destructive; returns the updated name.
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": {
"documentId": "<documentId>",
"name": "<name>"
},
"name": "rename_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The new name. Keep it short: at most 60 characters. A longer name is shortened at a word boundary with an ellipsis. | |
| tabId | No | Rename this tab within the document instead of the document itself. | |
| documentId | Yes | The document to rename (from find_documents / read_document). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The renamed document id (document renames). | |
| url | No | Link that opens the document (document renames). | |
| name | Yes | The stored name (shortened if it was over the cap). | |
| tabId | No | The renamed tab id (tab renames). | |
| renamed | Yes | Whether the document or one of its tabs was renamed. |