Wait for Session Activity
terminal_wait_activityWait for new session activity after a known cursor to get updates; use a cursorless read for an immediate snapshot.
Instructions
Wait for Session activity events after a known cursor; use terminal_read_activity without cursor for an immediate snapshot.
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>",
"cursor": "<cursor>"
},
"name": "terminal_wait_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | Yes | Optional next activity cursor; when set, wait for newer events. | |
| max_events | No | Maximum number of activity events to return. | |
| session_id | Yes | Active Session ID or short reference. | |
| timeout_ms | No | Optional wait timeout in milliseconds when cursor is supplied; maximum 86400000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| events | Yes | ||
| dropped | Yes |