tc_copy_folder
Copy a folder and all its contents to another location within Trimble Connect. Recreates the folder tree and copies files individually, enabling folder duplication without a server-side copy endpoint.
Instructions
Copy a folder and everything inside it to another location.
Trimble Connect has no server-side folder-copy endpoint, so this walks the tree and recreates folders + copies files one by one. Slow for large trees — max_items caps the work. Requires TC_ENABLE_WRITE=1.
Args: project_id: Project ID. folder_id: Folder to copy. target_parent_folder_id: Folder that will contain the copy. new_name: Name for the copy (default: same name as the source). max_items: Safety cap on folders+files processed (default 300).
Returns: {"copied": true, "new_folder_id", "folders_created", "files_copied", "errors": [...], "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | No | ||
| folder_id | Yes | ||
| max_items | No | ||
| project_id | Yes | ||
| target_parent_folder_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |