credit_top_up
Show the person a card for adding GraphSheets credit: what the account has free, amounts to choose from, and a button that opens GraphSheets to pay under their own sign-in. Call it when a tool is refused for credit (payment_required) or the account is read-only for want of it, passing the refusal's details.needed when it has one. Payment happens only in GraphSheets — never ask for card details. Then wait: the person presses Carry on on the card, or tells you, once credit has landed, and you retry what was refused.
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": "credit_top_up"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| needed | No | What the refused work needed, in micros (a refusal's details.needed), so the card starts on an amount that covers it |