llm_update_usage
Update cached Claude usage from API responses to replace token estimates with real budget pressure metrics for cost-aware model routing.
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).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |