Poll a background run
run_pollPoll a server-started run's new stdout/stderr from byte offsets, optionally wait up to wait_s, and report running, finished with outcome/result, or lost after reboot.
Instructions
Read new output of a run_start run from byte offsets (pass back stdout_next and stderr_next) and its state: running, finished (with outcome and the final result) or lost (target rebooted). wait_s waits up to that long for new output or the end. Only runs started by this server are accessible.
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": {
"target": "<target>",
"run_id": "<run_id>"
},
"name": "run_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_kb | No | Maximum KiB returned per stream | |
| run_id | Yes | run_id returned by run_start (r- and 12 hex digits) | |
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| wait_s | No | ||
| stderr_offset | No | ||
| stdout_offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||