Get Mac session
get_mac_sessionReturns a Mac session: state (queued, provisioning, ready, stopping, stopped or failed), cost, deadlines and cleanup_confirmed; once ready, also the image (macOS, Xcode, Simulator runtimes, tools), the secrets and signing files installed on it by name, and the Mac's account and drive. wait_seconds (up to 40) waits for a starting or stopping Mac to change state. include adds the account's recent sessions, its drive (space, versions, saves) or its secret names. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_mac_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Also return the account's: sessions (its 20 newest, to find a Mac after a lost answer), drive (its drives: space, versions, saves), secrets (names only, not values) | |
| session_id | No | Mac session ID (ses_…). Optional: without it, the account's running Mac. | |
| wait_seconds | No | Wait up to this long (0-40) for a starting or stopping session to change state, instead of polling. |