Copy Table
openl_copy_tableDuplicate a table in the same project while preserving formatting, merged cells, comments, and structure. Provide the destination module and new table name to create the copy.
Instructions
Copy a table inside the same project using Studio's server-side copy operation, preserving formatting, merged cells, comments, and complete table structure. Provide the destination module and new table name; optionally choose a sheet, create a new .xlsx module with modulePath, or replace the source properties. The copy remains in the working copy—use openl_save_project for Git-backed projects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the copied table. | |
| tableId | Yes | ID of the source table to copy. | |
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| sheetName | No | Destination worksheet name. Defaults to the copied table's name. | |
| moduleName | Yes | Name of the destination module. It must already exist unless modulePath is supplied. | |
| modulePath | No | Project-relative .xlsx path for a new destination module. Omit when moduleName already exists. | |
| properties | No | Replacement table properties. Omit to retain the source table's properties. | |
| response_format | No | Response format: 'json' for structured, round-trippable data (default), 'markdown' for human-readable output, 'markdown_concise' for a brief summary (1-2 paragraphs), or 'markdown_detailed' for full details with context | json |