switch_get_player
Retrieve one player's total and per-app playtime for today, returning nickname, avatar URL, and app durations so you can see what they played and for how long.
Instructions
Get today's playtime of one player, per app.
Use it for "what did 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 '' not found on device ''. ..." 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>",
"player_id": "<player_id>"
},
"name": "switch_get_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | The unique device ID. Use switch_list_devices to find it. | |
| player_id | Yes | The unique player ID. Use switch_list_players to find it. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |