opencode_provider_models
Fetch available models for a chosen provider, with optional project directory scoping and a configurable result limit.
Instructions
List available models for a specific provider.
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). 0 = all. | |
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| providerId | Yes |