Upload a file
upload_attachmentUpload a local file to the site's file manager to get a file ID for attaching to support tickets.
Instructions
Upload a local file into the file manager of the site and return its file id. The file is not linked to a ticket yet, pass the id to add_ticket_attachments or to create_ticket.
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": {
"filePath": "<filePath>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | File name to store it under, defaults to the name of the local file. | |
| filePath | Yes | Absolute path of the local file to upload. |