opencode_models
Lists available OpenCode 2 provider and model IDs without running a model, so you can pick a valid provider/model before delegating a task.
Instructions
List configured provider/model IDs from local OpenCode 2 without invoking any model. Call this before delegating if the user has not specified an explicit 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": "opencode_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional absolute project directory so project-local OpenCode config is included. | |
| provider | No | Optional provider prefix filter (for example, deepseek or opencode). | |
| timeoutMs | No | Command timeout in milliseconds. | |
| standalone | No | Run with --standalone so project config is read directly. |