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.
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": {
"workPackageId": "<workPackageId>",
"filePath": "<filePath>"
},
"name": "upload_work_package_attachment"
}
}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 |