opencode_events_poll
Poll OpenCode project events within a time window, or select global scope, to collect up to a set maximum for monitoring and automation.
Instructions
Poll project events from OpenCode, or explicitly select global scope. Collects up to maxEvents within the duration.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_events_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| maxEvents | No | Max events to collect (default 50, max 1000) | |
| durationMs | No | How long to collect in ms (default 3000, max 30000) |