opencode_provider_test
Test a provider's connectivity by creating a temporary session, sending a trivial prompt, and verifying the response to debug authentication issues.
Instructions
Quick-test whether a provider is working. Creates a temporary session, sends a trivial prompt, checks the response, and cleans up. Great for debugging auth issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Response format: plain text or JSON constrained by a JSON Schema. JSON Schema requires OpenCode permission for the StructuredOutput tool. | |
| modelID | No | Specific model ID to test. If omitted, discovers the provider default or first available model. | |
| variant | No | Model variant | |
| 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. | |
| providerId | Yes | Provider ID to test (e.g. 'anthropic', 'openrouter') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |