Duplicate Sheet Page Or Folder
item_tree.duplicateCopy a sheet (structure and rows), a page, a whiteboard, a Vista page, or a folder with what is in it, into a space or folder. Ids come from workspace.structure (an item's refId).
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": {
"toSpaceId": "<toSpaceId>"
},
"name": "item_tree.duplicate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | ||
| sheetId | No | The sheet to copy (give exactly one of sheetId, pageId, whiteboardId, vistaId, folderId) | |
| vistaId | No | A Vista page | |
| folderId | No | A folder is copied, with the sheets, pages and whiteboards in it, within its own space | |
| toSpaceId | Yes | The space the copy goes to | |
| toFolderId | No | A folder of `toSpaceId`; omit for the top of the space | |
| whiteboardId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | The name of what was copied | |
| location | Yes | Where the copy sits | |
| sourceId | Yes |