model_context_window
Get a model's context window capacity in tokens to decide whether a conversation can fit before migrating or compressing sessions.
Instructions
查询某个模型的上下文窗口容量(token 数)。
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": {
"model": "<model>"
},
"name": "model_context_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes |