Get OpenCode session status
oc_statusRetrieve a session's status, agent, model, cost, and latest assistant message, optionally waiting until the session becomes idle.
Instructions
Return status, agent, model, cost and the latest assistant message for a session.
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": {
"sessionID": "<sessionID>"
},
"name": "oc_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionID | Yes | ||
| waitSeconds | No | Optionally block up to this many seconds for the session to become idle |