gflow_get_credits
Read the Google Flow credit balance for one saved profile or all profiles before choosing an account for generation; no credits are spent.
Instructions
Read the current Google Flow credit balance for one saved profile or all profiles - the number Flow's account menu shows. Read directly from flow.google.com with the profile's saved session (no browser) when Flow accepts it; otherwise read in that profile's browser (one browser launch per profile, sequential for all_profiles). The direct read is off on macOS by default, behind a proxy, or with GFLOW_CLI_WIRE_READS=0. HTTP 429/503 returns a retryable error with no browser fallback: wait, do not loop. Spends no credits. Set all_profiles=true when choosing an account for generation; partial profile failures remain visible in the result. Set refresh=true to renew a signed-out session (rewrites that profile's saved cookies) in a headless browser and read again (slower - one more Chrome launch per signed-out profile; a revoked session still needs gflow auth login). The tier fields (sku, service_tier, user_paygate_tier, subscription_credits) are always null: flow.google.com does not report them.
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": "gflow_get_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | default | |
| refresh | No | ||
| all_profiles | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||