llm_update_usage
Update cached Claude usage from JSON API response to enable real budget pressure calculations for routing decisions.
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 |