Check the local OpenCode installation
opencode_checkResolves the configured OpenCode executable and reports its version, verifying the CLI is available before Codex delegates coding tasks.
Instructions
Resolve the configured OpenCode executable and report its version.
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_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | ||
| command | Yes | ||
| version | Yes | ||
| available | Yes | ||
| resolved_executable | Yes |