Credit consumption history
get_usage_historyReview credit charged for each diagram task (generate, edit, fix, relayout), newest first, with diagram and surface. Track how much each task costs and view a running session tally.
Instructions
List how much credit each past task (generate/edit/fix/relayout) charged — newest first, with the diagram it touched and the surface (api/sdk/mcp) that ran it. Use this to answer 'how much did each task cost?'. Also shows a running tally of tasks performed in THIS session. Free (read-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default 20). | |
| since | No | ISO-8601 lower bound (inclusive). | |
| until | No | ISO-8601 upper bound (exclusive). | |
| action | No | Filter to one task type. | |
| cursor | No | Pagination cursor from a previous call's next_cursor. | |
| source | No | Filter to one surface. | |
| diagram_id | No | Only tasks that touched this diagram. |