opencode_events_poll
Poll OpenCode project or global events to monitor autonomous coding activity. Collect up to 1000 events within a set duration, reporting partial results on connection failures without stopping remote work.
Instructions
Poll project events from OpenCode, or explicitly select global scope. Collects up to maxEvents within the duration. Connection failures are reported with any partial events; stopping observation does not abort remote work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Event scope (default: project). Global events include all projects and cannot be combined with directory. | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. | |
| maxEvents | No | Maximum number of events to collect (default: 50, max: 1000) | |
| durationMs | No | How long to collect events in milliseconds (default: 3000, max: 30000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |