Upload file
upload_fileUse this only as a step before generate_qr_code, update_qr_code or submit_batch, when the user has given a file to put behind a code (PDF, image, audio, video) or a logo or background image. Uploads it to the user's QRStuff storage and returns an idfs_file ID. Makes no QR code by itself.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The file the user attached. | |
| mime_type | No | MIME type of the file, for example application/pdf. | application/octet-stream |
| base64_data | No | Base64-encoded file content, for clients that cannot attach files. Send either file or base64_data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idfs_file | Yes |