admin_add_po_attachment
Attach a vendor quote, invoice, or packing slip to a purchase order with a file URL, local path, or base64 data. Supports JPEG, PNG, GIF, PDF, CSV, XLS, and XLSX files.
Instructions
Attach a file (vendor quote, invoice, packing slip) to a purchase order. Give exactly one source: file_url (a direct download link; works everywhere), file_path (a file on this computer; local installs only), or file_base64 (only for tiny files you create yourself, like a short CSV, because the whole file must be written out). Allowed: JPEG, PNG, GIF, PDF, CSV, XLS, XLSX. Max 10 MB and 10 files per PO; the extension must match the real file type.
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": {
"id": "<id>"
},
"name": "admin_add_po_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | PO ID (required) | |
| name | No | Display name (defaults to the filename) | |
| file_url | No | https link that downloads the file directly (not a preview page) | |
| filename | No | File name with extension, e.g. 'quote.pdf'. Required with file_base64; otherwise taken from the link or path. | |
| file_path | No | Full path to a file on this computer, e.g. /Users/me/Downloads/quote.pdf. Local installs only. | |
| file_base64 | No | File contents, base64-encoded. Tiny files only; needs filename. |