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.
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 |