From 9d254f204f33720bfa5ac6f6e3969d5ef6289c63 Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Wed, 2 Dec 2026 11:10:42 +0000 Subject: [PATCH] docs(api): document os_version and locale on the device session block The session block every /device/sessions response and MCP device tool returns gains `os_version` (the iOS version, or the Android API level) and `locale` (the locale the device was set to, null when none was given). Added to the SessionBlock schema, all 29 session examples and the MCP tools' field table. Merge once the API change is in production. --- mcp/agent-devices-tools.md | 1 + public/openapi.yaml | 73 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/mcp/agent-devices-tools.md b/mcp/agent-devices-tools.md index 7ff74a5..08eeb49 100644 --- a/mcp/agent-devices-tools.md +++ b/mcp/agent-devices-tools.md @@ -19,6 +19,7 @@ Every result about a session includes a `session` block, so the agent never need | `state` | `queued`, `provisioning`, `ready`, `active` or `needs_human` while it's open. Once it has ended: `released` (stopped, or ended for another reason), `expired` (it reached a time limit or the spend cap) or `failed` (the device failed) | | `release_reason` | Why the session ended, once it has: `user_stop`, `idle_timeout`, `max_duration`, `queue_timeout`, `spend_cap`, `needs_human_timeout`, `runner_error`, `heartbeat_lost` or `other` | | `platform`, `model` | The device, such as `ios` and `iphone-16-ios-26.5` | +| `os_version`, `locale` | The OS version on its own: the iOS version, such as `26.5`, or the Android API level, such as `36`. And the locale the device was set to, such as `de_DE`, or `null` when none was given and the device keeps its default | | `client_label` | Who is driving, such as `claude-code` | | `started_by` | Who started the session: `email` when a person did, or `key_name` when an API key did, its `client_label`, and whether it was you (`you`: you, or the API key you're using) and this connection (`this_client`) | | `created_at`, `started_at`, `released_at` | When the session was asked for, got its device, and ended | diff --git a/public/openapi.yaml b/public/openapi.yaml index 37f1810..24dfc2d 100644 --- a/public/openapi.yaml +++ b/public/openapi.yaml @@ -1110,6 +1110,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: null @@ -1322,6 +1324,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1344,6 +1348,8 @@ paths: release_reason: idle_timeout platform: ios model: iphone-16-ios-26.4 + os_version: '26.4' + locale: null client_label: cursor created_at: '2026-11-10T11:30:00.000Z' started_at: '2026-11-10T11:30:40.000Z' @@ -1394,6 +1400,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1452,6 +1460,8 @@ paths: release_reason: user_stop platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1550,6 +1560,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1629,6 +1641,8 @@ paths: release_reason: idle_timeout platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1735,6 +1749,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1808,6 +1824,8 @@ paths: release_reason: idle_timeout platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -1938,6 +1956,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2030,6 +2050,8 @@ paths: release_reason: idle_timeout platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2140,6 +2162,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2178,6 +2202,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2207,6 +2233,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2292,6 +2320,8 @@ paths: release_reason: idle_timeout platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2370,6 +2400,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2494,6 +2526,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2569,6 +2603,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2697,6 +2733,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2752,6 +2790,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2818,6 +2858,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -2935,6 +2977,8 @@ paths: release_reason: user_stop platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3047,6 +3091,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3109,6 +3155,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3157,6 +3205,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3242,6 +3292,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3314,6 +3366,8 @@ paths: release_reason: null platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3343,6 +3397,8 @@ paths: release_reason: idle_timeout platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -3763,6 +3819,8 @@ components: release_reason: idle_timeout platform: android model: pixel-10-api-36 + os_version: '36' + locale: null client_label: claude-code created_at: '2026-11-10T14:00:00.000Z' started_at: '2026-11-10T14:00:21.000Z' @@ -4544,6 +4602,8 @@ components: - release_reason - platform - model + - os_version + - locale - client_label - created_at - started_at @@ -4596,6 +4656,19 @@ components: The device, in the form GET /device/models uses: `iphone-16-ios-26.4`, or `pixel-10-api-36` (`-play` with Google Play). The OS version gets more precise once the device has started. example: pixel-10-api-36 + os_version: + type: [string, 'null'] + description: >- + The OS version on its own, so you need not take `model` apart: the iOS version (`26.4`), or the + Android API level (`36`), the values `os` takes when you start a session. Until the device has + started, an iOS session gives the major version it asked for (`26`). + example: '36' + locale: + type: [string, 'null'] + description: >- + The locale the device was set to, such as `de_DE`: the `deviceLocale` the session was started + with. Null when none was given, and the device keeps its own default. + example: de_DE client_label: type: [string, 'null'] description: Who is driving the session, such as `claude-code`.