create_contract_attachment
Upload a base64-encoded document to a contract and configure whether it is sent to the customer with invoice emails or displayed in the customer center.
Instructions
Upload and attach a document to a contract. The document must be provided as a base64-encoded string. Can be configured to be sent to the customer with invoices and/or shown in the customer center.
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": {
"contractNumber": "<contractNumber>",
"document": "<document>",
"fileName": "<fileName>",
"mimeType": "<mimeType>"
},
"name": "create_contract_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The document content as a base64-encoded string. | |
| fileName | Yes | The file name of the attachment (e.g. "terms.pdf"). | |
| mimeType | Yes | The MIME type of the attachment (e.g. "application/pdf"). | |
| contractNumber | Yes | The unique contract number to attach the document to. | |
| sendToCustomer | No | Whether to send this attachment to the customer with invoice emails. | |
| sendPermanently | No | Whether to send this attachment permanently with every invoice email. | |
| showInCustomercenter | No | Whether to show this attachment in the customer center portal. |