session_set_model
Change the model assigned to an existing native session in supported coding agents. Specify provider and native session ID to apply a new model configuration.
Instructions
Change the model for an exact native session when supported. OpenCode accepts providerID and modelID.
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": "<provider>",
"nativeId": "<nativeId>",
"model": "<model>"
},
"name": "session_set_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| nativeId | Yes | ||
| provider | Yes |