llm_update_usage
Update cached Claude usage from a JSON API response to reflect real subscription budget pressure, enabling accurate model selection.
Instructions
Update cached Claude usage from the JSON API response.
Call this with the result from browser_evaluate(FETCH_USAGE_JS). Accepts the full JSON object from the claude.ai internal API.
The cached data is used by llm_classify for real budget pressure instead of token-based estimates.
Args: data: JSON response from the claude.ai usage API (via browser_evaluate).
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": {
"data": "<data>"
},
"name": "llm_update_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |