upload_work_package_attachment
Attach a local file to a work package by providing its path and the work package ID.
Instructions
Read one explicit allowlisted local file and upload it to a work package. Use only when the user identified both the file and target task. Paths must be under OPENPROJECT_ALLOWED_UPLOAD_DIRS (default: current working directory). The call rejects files above maxBytes, sends bytes only to the configured OpenProject origin, creates a permanent attachment, and never modifies the local file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Explicit local file path to read and upload | |
| maxBytes | No | Maximum local file size, default 10 MB and hard limit 50 MB | |
| description | No | ||
| workPackageId | Yes |