session_status
Returns terminal session state, current command, timestamps, idle time, warnings, and exit status so you can monitor progress and detect stalled or failed device sessions.
Instructions
Return state, command, timestamps, idle time, warnings, and exit status.
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": {
"session_id": "<session_id>"
},
"name": "session_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| state | Yes | ||
| command | Yes | ||
| warnings | No | ||
| exit_code | No | ||
| created_at | Yes | ||
| session_id | Yes | ||
| idle_seconds | No | Seconds since the last output, or since session creation when no output has arrived yet. | |
| last_used_at | Yes | ||
| last_output_at | No | UTC timestamp when output was last received; null if the session has not produced any output yet. |