tc_upload_file
Upload a new file to a Trimble Connect folder from your local disk. Use when the file does not already exist in the destination folder.
Instructions
Upload a NEW file from the local disk into a Trimble Connect folder.
Fails if a file with the same name already exists in that folder — use tc_upload_new_version to add a revision instead. Requires TC_ENABLE_WRITE=1.
Args: project_id: Project ID. folder_id: Destination folder ID (tc_list_folder / tc_folder_tree). local_path: Full path of the file on this computer. name: Optional name to use in Trimble Connect (default: file name).
Returns: {"uploaded": true, "file_id", "version_id", "revision", "name", "size_bytes"}
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": {
"project_id": "<project_id>",
"folder_id": "<folder_id>",
"local_path": "<local_path>"
},
"name": "tc_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| folder_id | Yes | ||
| local_path | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |