list_models
Retrieve available models for a specified LLM provider by querying the provider's API, and fall back to locally stored models if the API is unreachable.
Instructions
列出某 LLM 供应商可用的模型。
优先实时请求供应商的 /v1/models 接口;接口不可用时回退到本地数据库已添加的模型。
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": {
"provider_id": "<provider_id>"
},
"name": "list_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |