Add document
add_documentAttach a document metadata record to a ticket. The file itself must be uploaded to Supabase Storage separately; pass the resulting URL as file_url.
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": {
"ticket_id": "<ticket_id>",
"file_name": "<file_name>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional notes about the document | |
| file_url | No | Public or signed URL to the stored file | |
| file_name | Yes | Original file name (e.g. report.pdf) | |
| file_size | No | File size in bytes | |
| mime_type | No | MIME type (e.g. application/pdf, image/png) | |
| ticket_id | Yes | Ticket UUID |