List OpenCode models
oc_modelsLists models available to OpenCode, optionally filtered by provider, and returns provider/model IDs usable for selecting an agent model.
Instructions
List models available to OpenCode, optionally filtered by provider. Returns ids usable as model (provider/model).
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": "oc_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Filter by provider id, e.g. google | |
| directory | No |