create_pdf_qr
Create a dynamic QR code and short link for a PDF (menus, flyers, tickets). Host the PDF by passing pdf_url (a link Hovercode fetches) or pdf_base64 (the file's base64 bytes). Returns a shareable short link plus a rendered QR. Because it's dynamic you can later swap the PDF without reprinting the code — always dynamic, no static option here. Counts toward the same workspace dynamic-code limit as create_qr_code (list_workspaces' dynamic_qr_limit); past that limit this call returns an error.
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": "create_pdf_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Labels to attach (created if new) so you can find these later — list_qr_codes and list_short_links search by tag. | |
| domain | No | Custom short-link domain (list_workspaces shows the plan). | |
| pdf_url | No | URL of a PDF to fetch and host. Use this or pdf_base64. | |
| filename | No | Name for the stored file, e.g. 'menu.pdf'. | |
| workspace | No | Workspace id. Optional when the account has one workspace; use list_workspaces to resolve otherwise. | |
| pdf_base64 | No | Base64-encoded PDF bytes (data-URI prefix allowed), max 20 MB. Or use pdf_url. | |
| display_name | No | Internal name to find this code later. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| png | No | PNG URL once rendered; null until then (use download_qr). | |
| svg | No | Rendered QR as SVG markup. | |
| logo | No | ||
| tags | No | ||
| text | No | ||
| error | No | Present only when the tool failed (isError): cause, retryable, message. | |
| frame | No | ||
| vcard | No | ||
| folder | No | ||
| created | No | ||
| dynamic | No | ||
| pattern | No | ||
| qr_data | No | Encoded data: the destination URL for URL codes. | |
| qr_type | No | Link, Text, vCard, or PDF. | |
| svg_file | No | ||
| eye_color | No | ||
| eye_style | No | ||
| has_border | No | ||
| frame_color | No | ||
| total_scans | No | ||
| display_name | No | ||
| gps_tracking | No | ||
| pdf_file_url | No | ||
| unique_scans | No | ||
| primary_color | No | ||
| shortlink_url | No | Tracked short URL a dynamic code points at; null for static codes. | |
| text_secondary | No | ||
| background_color | No | ||
| error_correction | No |