opencode_provider_models
List available models for a specific provider by providing its provider ID. Check provider IDs with the provider list tool to get started.
Instructions
List available models for a specific provider. Call opencode_provider_list first to see provider IDs.
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_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max models to show (default 30). Use 0 for all. | |
| 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 (e.g. 'anthropic', 'openrouter', 'google') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |