opencode_list_models
Retrieve all models available from authenticated providers, grouped by provider, to pick the right model before starting a coding session.
Instructions
List all models available in opencode across all connected providers, grouped by provider.
Only providers you are authenticated with will return models. Returns: models (flat list), by_provider (grouped dict), total count, default_model.
Use this before opencode_start_session to pick the right model for the task.
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_list_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||