switch_set_restriction_mode
Set whether a Nintendo Switch device suspends the game or only shows an alarm when its daily or per-day playtime limit is reached.
Instructions
Choose what happens when the playtime limit is reached: suspend the game or only show an alarm.
FORCED_TERMINATION suspends the software at the limit, ALARM only shows a notice on the screen. This applies to the daily and the per-day limits. switch_get_device shows the current mode. Returns a confirmation.
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>",
"mode": "<mode>"
},
"name": "switch_set_restriction_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Restriction mode: 'FORCED_TERMINATION' to suspend software when playtime limit is reached, or 'ALARM' to only show an alarm without suspending. | |
| device_id | Yes | The unique device ID. Use switch_list_devices to find it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |