switch_get_playtime
Retrieve daily Nintendo Switch playtime for a device or player by month or specific day. Check how long was played on selected dates, including disabled and exceeded time.
Instructions
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 on device ''." or "No data available for ..." when there is nothing for the period, and "Error: Player '' not found ..." for an unknown player_id. 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>"
},
"name": "switch_get_playtime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | Filter results to a specific day (1-31). Requires year and month to be set. | |
| year | No | Year for the breakdown (e.g. 2024). If omitted, returns the current month's live data. | |
| month | No | Month for the breakdown (1-12). Required if year is provided; must be omitted if year is omitted. | |
| device_id | Yes | The unique device ID. Use switch_list_devices to find it. | |
| player_id | No | Filter results to a specific player ID. Use switch_list_players to find player IDs. | |
| skip_cache | No | Skip reading from and writing to the local cache. Always fetches fresh data from the Nintendo API. Useful when data looks stale or unexpected. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |