opencode_provider_test
Verify a provider works by creating a temporary session, sending a trivial prompt, and cleaning up afterward.
Instructions
Quick-test whether a provider is working. Creates a temp session, sends a trivial prompt, cleans up.
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": {
"providerId": "<providerId>"
},
"name": "opencode_provider_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| modelID | No | ||
| variant | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| providerId | Yes |