Record consumer chat (estimated)
record_web_chatEstimate environmental impact of web chat conversations by recording token usage. Accepts structured turns for accuracy, or raw page text as fallback.
Instructions
Record ESTIMATED usage for a Claude desktop/web conversation that doesn't expose token counts. Preferred: pass structured turns (the host extracts them from the page). Fallback: pass raw page_text and it will be parsed best-effort. Tokens are estimated with a BPE proxy and tagged 'estimated'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turns | No | Conversation turns in order (reliable input). | |
| page_text | No | Raw flattened transcript text (fallback if turns unavailable). | |
| model | No | Model the chat used; defaults to a Sonnet-class model. | |
| conversation_id | No |