Approval | Spending limits
spending_policyRead account-wide authorization or update only with explicit user consent. 1 credit=USD 0.01. New accounts default to unlimited automatic execution; users can set task/5h/day/week limits, with suggested values 50/500/1000/5000. Existing saved policies remain unchanged. Wallet balance, token hard caps and permissions still apply. Never raise autonomously. action=get reads without other arguments; action=update requires the complete policy (including unlimited and its latest revision) and confirmed:true after explicit consent. Keep allowance and reset/recovery countdown in the same table, not separate prose. Used includes reservations; never subtract twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | get reads the policy without other parameters; update requires the complete policy with its latest revision and confirmed:true after explicit user approval. An explicit empty action retains legacy get behavior. | |
| policy | No | Complete replacement policy from the latest get result; never raise limits autonomously | |
| confirmed | No | true only after the user explicitly approves this policy update |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | ||
| policy | Yes | ||
| windows | No | ||
| timezone | Yes | ||
| usdPerPoint | Yes | ||
| dayUsedMillis | Yes | ||
| reservedMillis | Yes | ||
| weekUsedMillis | Yes | ||
| fiveHourUsedMillis | Yes |