Get AI usage limits
get_usageRetrieve current AI subscription usage limits per provider, including percent used and time until each window resets, so agents can warn you before starting a long task.
Instructions
Current usage of AI subscription limits (Claude Code, Codex, GitHub Copilot, Windsurf and any AI the user added to TokenBar). For each AI: windows (usually 5h and 7d) with usedNow (% used right now, 0 after the reset time), resetsAt (unix s) and resetsInSeconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Optional provider id: "claude", "codex", "copilot", "windsurf" or another id. Omit for all. |