Check credits
get_creditsReturn the account owner's credit balance for the designer's AI tools; reading it spends nothing. Check it before generate_custom_print so you can tell the human the cost (1 credit per generation with either engine; preserve=true is free) and what will be left. No credits account yet → balance 0; the first generation opens it with 20 credits as a welcome bonus. Every bought tee adds 20 credits; credits are not sold.
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_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | ||
| rules | No | How credits are earned: signup_bonus, trial_bonus, order_reward_per_tee, order_reward_max_tees, trial_cooldown_days. | |
| detail | No | ||
| recent | No | Latest balance changes, newest first (up to 10). | |
| balance | No | Current credit balance. | |
| studio_account | No | False if the user has no credits account yet (the first generation opens one). |