tc_create_folder_structure
Create a whole folder tree in a Trimble Connect project with a single call, automatically generating intermediate folders and reusing existing paths for safe re-runs.
Instructions
Create a whole folder tree in one call (e.g. an ISO 19650 CDE).
Requires TC_ENABLE_WRITE=1.
Args: project_id: Project ID. paths: Folder paths relative to the start folder, '/' separated, e.g. ["01-WIP/01-ARC", "01-WIP/02-STR", "02-SHARED", "03-PUBLISHED"]. Intermediate levels are created automatically, so listing only the leaves is enough. parent_folder_id: Start folder; omit for the project ROOT. skip_existing: Reuse a folder that already exists instead of failing (default True) — makes the call safe to re-run.
Returns: {"created": [{"path","id"}], "existing": [{"path","id"}], "errors": [{"path","error"}], "root_folder_id": str}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| project_id | Yes | ||
| skip_existing | No | ||
| parent_folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |