opencode_provider
List AI providers with model and connection status, retrieve authentication methods, and start or complete OAuth authorization flows.
Instructions
Manage AI providers. Actions: list (all providers with models and connection status), auth (get auth methods per provider), authorize (start OAuth flow), callback (complete OAuth flow with authorization code).
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": {
"action": "<action>"
},
"name": "opencode_provider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Provider ID (required for authorize/callback) | |
| code | No | Authorization code (for callback) | |
| action | Yes | ||
| method | No | Auth method index (for authorize/callback) |