upload_file
Upload a file from your local disk and attach it to a Rentvine work order, property, lease, or unit using its absolute path.
Instructions
Upload a file to Rentvine and optionally attach it to a work order, property, lease, or unit (live data, write). ALWAYS use file_path when the file exists on disk — pass the absolute path and the server reads it directly. NEVER use file_content_base64 for local files; it is extremely slow and fills the context window. file_content_base64 exists only for remote/HTTP deployments with no shared filesystem. Use list_object_types to get valid object_type_id values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Override the file name. If omitted, inferred from file_path. | |
| file_path | No | Absolute path to the file on disk (e.g. '/Users/you/Downloads/invoice.pdf'). USE THIS for any file you can reference by path. The server reads it directly — no encoding needed. | |
| object_id | No | ID of the object to attach the file to (e.g. unitID, workOrderID). | |
| object_type_id | No | Rentvine object type ID to attach the file to. Use list_object_types to find valid values (e.g. 7 = Unit). | |
| file_content_base64 | No | LAST RESORT ONLY — base64-encoded file content for remote deployments with no filesystem access. Do not use this for local files; use file_path instead. |