switch_set_daily_playtime_limit
Sets or removes the daily playtime limit for a Nintendo Switch device, controlling how many minutes are allowed each day in DAILY timer mode.
Instructions
Set the daily playtime limit of a device, or remove it with minutes=-1.
Use it to change the limit that applies to every day while the timer mode is DAILY. For different limits per weekday use switch_set_day_restrictions (with timer mode EACH_DAY_OF_THE_WEEK), for more time today only switch_add_extra_time. Returns a confirmation with the new limit.
Returns "Error: Device '' not found. ..." for an unknown device_id. Returns "Error: Not authenticated. ..." without a session token and "Error: Authentication failed. ..." when it expired; then log in again with switch_get_login_url.
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": {
"device_id": "<device_id>",
"minutes": "<minutes>"
},
"name": "switch_set_daily_playtime_limit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minutes | Yes | Daily playtime limit in minutes (0-360). Use -1 to remove the limit entirely. | |
| device_id | Yes | The unique device ID. Use switch_list_devices to find it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |