List available models
opencode_modelsList configured OpenCode providers and models as provider/model IDs. Filter by provider or text to find the model you need, without exposing API keys.
Instructions
Lists the providers and models configured in opencode as 'provider/model' IDs. Use 'filter' to narrow the list. Never returns API keys.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of hits (default 60). | |
| filter | No | Text filter on the model ID or display name, e.g. 'claude' or 'gemini'. | |
| provider | No | Only models from this provider, e.g. 'openrouter'. |