Upload attachment
op_upload_attachmentAttach a local file to a work package. Optionally embed an image reference in a comment or description.
Instructions
Upload a file from the local filesystem as an attachment on a work package. Provide the absolute path to the file. Optionally override the file name. Set embedIn to "comment" or "description" to also insert an image reference () into the work package.
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": "op_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workPackageId | Yes | ||
| filePath | Yes | Absolute path to the file on disk | |
| fileName | No | Override the file name (defaults to basename of filePath) | |
| description | No | ||
| embedIn | No | Embed the uploaded file in a comment or the WP description | |
| embedText | No | Text to include alongside the image reference (used with embedIn) |