Nintendo Switch Parental Controls (unofficial)

v1.5.1
io.github.udondan/switch-parental-controls Checked 11 hours ago Published 1 day ago

Monitor and manage Nintendo Switch parental controls: playtime limits, bedtime, players, app usage

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

switch_list_applications

List the games and apps played on one device, with their allow-list status. Use it to find an application_id for switch_set_app_allow_list, or to see today's playtime per app across all players. Each app comes with name, application ID, image URL, today's playtime and whether it is allow-listed (ALLOW: starts regardless of the content restriction level, NONE: normal restrictions). For the apps of one player use switch_get_player. Returns "No applications tracked on device '<name>'." if none were played. Returns "Error: Device '<id>' not found. ..." for an unknown device_id. Returns "Error:…

ParameterTypeDescription
device_id *stringThe unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.

switch_set_app_allow_list

Allow one app regardless of the content restriction level, or remove that exception. Use it when a specific game is blocked by the age rating filter but should be allowed (allow=true), or to undo that (allow=false). To change the filter for all apps use switch_set_content_restriction_level instead. Returns a confirmation with the app name. Returns "Error: Application '<id>' not found on device '<name>'. ..." for an unknown application_id. Returns "Error: Device '<id>' not found. ..." for an unknown device_id. Returns "Error: Not authenticated. ..." without a session token and "Error: Authent…

ParameterTypeDescription
allow *booleanTrue to add the application to the allow list (bypasses content restrictions). False to remove it from the allow list.
application_id *stringThe unique application ID. Use switch_list_applications to find it.
device_id *stringThe unique device ID. Use switch_list_devices to find it.

switch_get_login_url

Start the Nintendo login: returns the login URL and the steps to follow. Use it first when the server has no session token, or after a tool reported that the token expired. The user opens the URL, logs in, copies the link of the "Select this person" button and gives it to switch_complete_login. Every call starts a new login and replaces the previous one. Returns "Error: ..." if the login URL cannot be created.

switch_complete_login

Finish the Nintendo login with the link copied after switch_get_login_url. Use it once the user has the link of the "Select this person" button. It signs in, makes the other tools usable and saves the session token to the credentials file, which the server reads on its next start. The token itself is never returned. If the file cannot be written, the login still works until the server stops, and the result says so. Returns "Error: No pending login found. ..." if switch_get_login_url was not called first, and "Error: ..." if the link is invalid or the login fails.

ParameterTypeDescription
redirect_url *stringThe URL you were redirected to after clicking 'Select this person' on the Nintendo login page. It starts with 'npf71b963c1b7b6d119://' or similar.

switch_set_daily_playtime_limit

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 '<id>' 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.

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
minutes *integerDaily playtime limit in minutes (0-360). Use -1 to remove the limit entirely.

switch_add_extra_time

Give a device extra playtime for today only, on top of its limit. Use it for a one-off "30 more minutes today"; the limit of other days stays as it is. Every call adds to the extra time already given. To change the limit itself use switch_set_daily_playtime_limit. Returns a confirmation. Returns "Error: Device '<id>' 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.

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
minutes *integerNumber of extra minutes to add for today (must be positive).

switch_set_timer_mode

Choose between one limit for every day (DAILY) and one per weekday (EACH_DAY_OF_THE_WEEK). Use it before switch_set_day_restrictions, which only takes effect in EACH_DAY_OF_THE_WEEK mode; in DAILY mode switch_set_daily_playtime_limit sets the limit. switch_get_device shows the current mode. Returns a confirmation. Returns "Error: Device '<id>' 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.

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
mode *stringTimer mode: 'DAILY' for a single limit for all days, or 'EACH_DAY_OF_THE_WEEK' for per-day limits.

switch_set_day_restrictions

Set the playtime limit and bedtime of one weekday. Use it to give e.g. weekends other rules than school days. Each call sets both settings of that day: playtime_enabled with max_playtime_minutes, and bedtime_enabled with the alarm and end time. It only takes effect while the timer mode is EACH_DAY_OF_THE_WEEK (switch_set_timer_mode). For the same bedtime on every day use switch_set_bedtime_alarm and switch_set_bedtime_end_time. Returns a confirmation with the day's rules. Invalid combinations, like playtime_enabled=true without max_playtime_minutes, are rejected with the reason. Returns "Err…

ParameterTypeDescription
bedtime_enabled *booleanWhether to enable bedtime restrictions for this day.
day_of_week *Day of the week to configure (e.g. 'MONDAY').
device_id *stringThe unique device ID. Use switch_list_devices to find it.
playtime_enabled *booleanWhether to enable a playtime limit for this day.
bedtime_alarm_hourHour for the bedtime alarm (16-23, 23 only as 23:00). Required if bedtime_enabled is true.
bedtime_alarm_minuteMinute for the bedtime alarm (0-59).
bedtime_end_hourHour when bedtime ends / device can be used again (5-9, 9 only as 09:00). Required if bedtime_enabled is true.
bedtime_end_minuteMinute when bedtime ends (0-59).
max_playtime_minutesMaximum playtime in minutes for this day (0-360). Required if playtime_enabled is true.

switch_set_restriction_mode

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 '<id>' 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.

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
mode *stringRestriction mode: 'FORCED_TERMINATION' to suspend software when playtime limit is reached, or 'ALARM' to only show an alarm without suspending.

switch_set_content_restriction_level

Set which games may start, by age rating, for all apps of a device. Use it to change the age rating filter: NONE, CHILDREN, YOUNG_TEENS, OLDER_TEENS or CUSTOM. To allow one blocked app use switch_set_app_allow_list instead. Returns a confirmation. Returns "Error: Device '<id>' 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.

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
level *stringContent restriction level: 'NONE' (no restriction), 'CHILDREN' (young child), 'YOUNG_TEENS', 'OLDER_TEENS' (teen), or 'CUSTOM'.

switch_set_bedtime_alarm

Set the time from which a device shows the bedtime alarm, for every day. Use it for the evening part of bedtime (16:00 to 23:00), or hour=0 and minute=0 to turn the alarm off. The morning end is set with switch_set_bedtime_end_time, a bedtime for single weekdays with switch_set_day_restrictions. Returns a confirmation. Times outside 16:00 to 23:00 are rejected with the reason. Returns "Error: Device '<id>' 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 sw…

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
hour *integerHour for the bedtime alarm (16-23). Use 0 with minute=0 to disable the alarm.
minuteintegerMinute for the bedtime alarm (0-59).

switch_set_bedtime_end_time

Set the time in the morning from which a device can be used again, for every day. Use it for the end of bedtime (05:00 to 09:00), or hour=0 and minute=0 to turn it off. The evening alarm is set with switch_set_bedtime_alarm, a bedtime for single weekdays with switch_set_day_restrictions. Returns a confirmation. Times outside 05:00 to 09:00 are rejected with the reason. Returns "Error: Device '<id>' 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…

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
hour *integerHour when bedtime ends and the device can be used again (5-9, 9 only as 09:00). Use 0 with minute=0 to disable.
minuteintegerMinute when bedtime ends (0-59).

switch_clear_cache

Delete the local copies of past monthly summaries, so they are fetched again. Use it when switch_get_monthly_summary or switch_get_playtime show old or unexpected numbers for a past month; for a single call, skip_cache=true on those tools does the same without deleting anything. Without arguments it clears everything, or only one device, year or month. It does not contact Nintendo and changes nothing on the console. Returns "✓ Cleared <n> cached file(s)." or "No cached files found matching the given filters."

ParameterTypeDescription
device_idLimit clearing to this device ID. Omit to clear cache for all devices.
monthLimit clearing to this month (1-12). Requires year to be set.
yearLimit clearing to this year. Omit to clear all years.

switch_list_devices

List the Nintendo Switch consoles of the account, with their device IDs. Start here: every other tool needs a device_id from this list. Each device comes with its name, model, today's playtime, daily limit, remaining time and last sync; the JSON adds the timer mode, bedtime and restriction mode. Use switch_get_device for the settings of one device. Returns "No Nintendo Switch devices found on this account." if there are none. Returns "Error: Not authenticated. ..." without a session token and "Error: Authentication failed. ..." when it expired; then log in again with switch_get_login_url.

ParameterTypeDescription
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.

switch_get_device

Get the current parental control settings and today's usage of one device. Use it to see how a device is set up: timer mode, daily limit, today's playtime and remaining time, restriction mode (forced termination or alarm only), bedtime alarm and end, the playtime limit and bedtime of each day of the week (as set by switch_set_day_restrictions), and the number of players and tracked apps. For playtime history use switch_get_playtime or switch_get_monthly_summary. Returns "Error: Device '<id>' not found. ..." for an unknown device_id. Returns "Error: Not authenticated. ..." without a session…

ParameterTypeDescription
device_id *stringThe unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.

switch_get_today_summary

Get today's totals of one device: playing, disabled and exceeded time. Use it for "how long was the console used today". Disabled time is time the device was blocked, exceeded time is play beyond the limit. For one player use switch_get_player, for other days switch_get_playtime. Returns "No usage summary available for today (<date>) on device '<name>'." before the first sync of the day. Returns "Error: Device '<id>' 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 ag…

ParameterTypeDescription
device_id *stringThe unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.

switch_list_players

List the players (user profiles) of one device, with their player IDs. Use it to find a player_id for switch_get_player, switch_get_playtime or switch_get_monthly_summary, or to compare today's playtime of all players. Each player comes with nickname, player ID, avatar URL and today's playtime; the JSON adds the apps played today. Returns "No players found on device '<name>'." if the device has none. Returns "Error: Device '<id>' not found. ..." for an unknown device_id. Returns "Error: Not authenticated. ..." without a session token and "Error: Authentication failed. ..." when it expired;…

ParameterTypeDescription
device_id *stringThe unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.

switch_get_player

Get today's playtime of one player, per app. Use it for "what did <player> play today and for how long". It returns the nickname, avatar URL, today's total and the time of each app played today. For other days use switch_get_playtime, for a month switch_get_monthly_summary, both with player_id. Returns "Error: Player '<id>' not found on device '<name>'. ..." for an unknown player_id. Returns "Error: Device '<id>' 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…

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
player_id *stringThe unique player ID. Use switch_list_players to find it.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.

switch_get_monthly_summary

Get the playtime totals of a month for a device, per player, or for one player. Use it for monthly reports ("how much was played in March"). Without player_id it returns the month's total and the total of each player; with player_id that player's total and playtime per day. Without year and month it returns the most recent month Nintendo has summarised, which is usually the previous month. For single days use switch_get_playtime. Returns "No monthly summary available for device '<name>'." if Nintendo has none for the month, and "Error: Player '<id>' not found ..." for an unknown player_id. R…

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
monthMonth for the summary (1-12). Required if year is provided; must be omitted if year is omitted.
player_idFilter results to a specific player ID. Use switch_list_players to find player IDs.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.
skip_cachebooleanSkip reading from and writing to the local cache. Always fetches fresh data from the Nintendo API. Useful when data looks stale or unexpected.
yearYear for the summary (e.g. 2024). If omitted, returns the most recent available summary.

switch_get_playtime

Get the playtime per day of a month, or of a single day, for a device or one player. Use it for questions about specific days ("how long on Saturday", "each day this month"). Without year and month it covers the current month, from live data that also shows disabled and exceeded time per day; past months come from the monthly summary. With day it returns that day only, with player_id only that player. For today only use switch_get_today_summary, for the totals of a month switch_get_monthly_summary. Returns "No daily data available for <YYYY-MM> on device '<name>'." or "No data available for…

ParameterTypeDescription
device_id *stringThe unique device ID. Use switch_list_devices to find it.
dayFilter results to a specific day (1-31). Requires year and month to be set.
monthMonth for the breakdown (1-12). Required if year is provided; must be omitted if year is omitted.
player_idFilter results to a specific player ID. Use switch_list_players to find player IDs.
response_formatOutput format: 'markdown' for human-readable or 'json' for machine-readable.
skip_cachebooleanSkip reading from and writing to the local cache. Always fetches fresh data from the Nintendo API. Useful when data looks stale or unexpected.
yearYear for the breakdown (e.g. 2024). If omitted, returns the current month's live data.