Upload a File → Get a Link & QR
render_file_upload_qr_formOpen an interactive form for the user to upload a file or PDF from their device and get a permanent short link plus a downloadable dynamic QR code. Use this on Claude and other MCP hosts that cannot pass an attached file directly, whenever the user wants to share or host a PDF, menu, brochure, CV, ticket, or other file by link or QR. The form uploads the file to QRCodeKIT and saves the link; when qr_id is provided, it replaces the file of an existing link while preserving its short URL and QR code.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_file_upload_qr_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr_id | No | Optional QRCodeKIT identifier when updating an existing QR instead of creating one. | |
| title | No | QR title used when the upload is saved; the form has no title input. Always pass a sensible title from the conversation; when updating an existing QR, pass that QR's current title. Defaults to the uploaded filename. | |
| typology | No | Initial file typology hint for the form heading. The final typology is inferred from the uploaded file's extension, so this is only a default. | file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr_id | No | Stable QRCodeKIT identifier when the widget updates an existing QR. | |
| title | No | QR title used when the upload is saved. Falls back to the uploaded filename. | |
| typology | No | Initial file typology for the form. | file |
| max_bytes | No | Maximum accepted upload size in bytes, enforced client-side for UX. |