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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |