Share a File or PDF by Link
host_fileUpload and host a local PDF, image, document, spreadsheet, or other file, and get a permanent public short link plus a downloadable dynamic QR code that opens or downloads it. Use this when the user wants to publish or share an attached PDF or file — a PDF menu, brochure, catalog, CV, ticket, presentation, or any document — without a separate file-hosting account. QRCodeKIT copies the attachment to its own asset storage and validates PDFs as real PDF documents. When qr_id is provided, replace the hosted file while preserving the existing public URL and printed QR code.
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": "<file>"
},
"name": "host_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Attached file to host — PDF or any other type — stored as a QRCodeKIT asset before creating the link. | |
| qr_id | No | Optional QRCodeKIT identifier for updating an existing link instead of creating one. | |
| title | Yes | Display title for the link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | QR codes visible to the active account. |