prime_create_attachment
Create a new job attachment record with file details and optional metadata; handle the actual file upload separately.
Instructions
Create a new attachment record for a job. Note: File upload may require separate handling.
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": {
"job_id": "<job_id>",
"file_name": "<file_name>"
},
"name": "prime_create_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Internal notes | |
| title | No | Attachment title/description | |
| job_id | Yes | The job ID this attachment belongs to | |
| file_url | No | URL of the file (if already uploaded) | |
| file_name | Yes | Original file name | |
| file_size | No | File size in bytes | |
| mime_type | No | MIME type of the file | |
| description | No | Detailed description | |
| estimate_id | No | Related estimate ID | |
| allocation_id | No | Related allocation ID | |
| attachment_type_id | No | Attachment type ID |