onda_terminal_poll
Poll a subscribed terminal session for new output, blocking up to timeout for fresh data. Returns only chunks produced since the last poll, ideal for continuous monitoring loops.
Instructions
Long-poll a subscribed terminal session for new output. Blocks up to timeoutMs (default 15000) waiting for new chunks. Returns immediately if data is already pending. Each call advances the cursor; only data emitted after the last poll is returned. Use in a loop: subscribe -> poll -> poll -> ... -> unsubscribe.
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": "onda_terminal_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID returned by onda_terminal_subscribe. | |
| timeoutMs | No | Max wait in ms before returning empty. Default 15000. |