sync_balance
Record the current API credit balance from the signed-in billing page so image generation cost tracking stays accurate.
Instructions
When the user says '同步余额' or 'sync my balance', start with {}. Follow the returned browser instructions, then call again with all four fields. Report success only when the result says synced.
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": "sync_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_usd | No | USD value displayed next to API credit balance or Credit balance. | |
| billing_url | No | Actual URL of the signed-in billing page you read. | |
| observed_at | No | Unix time in seconds at the moment the amount was read (Date.now()/1000). | |
| organization_id | No | Organization ID from General settings for that same organization. |