Call the next number
call_next_numberCall the next number of a Now Serving app, as its pedal does.
When to use:
A person asks to call the next customer at a counter.
When NOT to use:
Setting the app up or changing its numbers: use update_items kind apps.
What to know:
The number goes up by one on every screen that shows the app. Needs screen.edit.
Parameters:
Example: {appId:"app_queue", counter:"Desk 1", screenId:"scr_7"}.
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": {
"appId": "<appId>"
},
"name": "call_next_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The Now Serving app. Ids come from list_items kind apps. | |
| counter | No | One of the app's counters. Leave it out when the app lists none. | |
| screenId | No | One screen that gets the action. A screen id comes from list_items kind screens. | |
| screenIds | No | The screens that get the action, when there are several. Combined with screenId into one set; each screen gets it once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queued | No | How many screens or devices it was sent to. | |
| notSent | No | The screens or devices it was not sent to, and why. | |
| commandIds | No | Ids of what was sent, one per screen. |