status
Check a session's current state, cancellation flag, config, pending approvals/questions, and blocking-call wait; repeat calls are cheap. Closed idle sessions report CLOSED with last values.
Instructions
Session state, cancelling flag, current config values, pending approvals and questions, and whether a blocking call is waiting. Cheap to call repeatedly; the config choices are in open, set_config and snapshot. A session closed for idleness reports CLOSED with its last values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session id returned by open |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| state | Yes | ||
| config | Yes | ||
| session | Yes | ||
| waiting | Yes | ||
| subagent | Yes | ||
| approvals | Yes | ||
| questions | Yes | ||
| cancelling | Yes |