Open a different link at different times
set_qr_timesMake one of the signed-in user's QR codes open a different link at different times of day, with the same printed QR. For example a cafe menu: breakfast menu 07:00-11:00, lunch menu 11:00-16:00, dinner menu 16:00-23:00. Outside every time, the QR opens its normal link. Times are 24-hour HH:MM in India time unless a timezone is given. A time that ends before it starts runs overnight (22:00-02:00). If two times overlap, the first in the list wins. Up to 8 times. This replaces all of the code's times; send an empty list to switch times off. Get the id from my_qr_codes (it also shows the current times). Read the times and links back to the user before calling this.
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": {
"id": "<id>",
"times": "<times>"
},
"name": "set_qr_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The QR id (10 letters and numbers), from my_qr_codes or create_qr_code. | |
| times | Yes | The times, in order. An empty list switches times off. | |
| timezone | No | Optional IANA timezone, e.g. "Asia/Dubai". Default "Asia/Kolkata". |