Link a Hosted File
save_file_url_qrCreate or update a permanent short link and dynamic QR code for a file or PDF that is already hosted at a public URL. Use this as a fallback when the host cannot pass an attached file; prefer host_file for local or host-native attachments. When qr_id is provided, update the file destination while preserving the existing short link and QR code. Also used as the finalizer step by the in-chat upload form.
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": {
"title": "<title>",
"file_url": "<file_url>",
"typology": "<typology>"
},
"name": "save_file_url_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr_id | No | Optional QRCodeKIT identifier for updating an existing QR instead of creating one. | |
| title | Yes | Display title for the QR. | |
| file_url | Yes | Already-hosted public file URL, preferably a QRCodeKIT asset URL. | |
| typology | Yes | Use 'file' for an arbitrary file or 'pdf' for a PDF. | |
| asset_iri | No | Optional QRCodeKIT asset IRI returned by an earlier upload. | |
| original_filename | No | Original filename to show for the download. Defaults to 'file'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | QR codes visible to the active account. |