Store the Stripe TEST restricted key (rk_test_)
store_stripe_test_keyStores the site's ONE Stripe key in TEST mode: a restricted key (rk_test_…) from the project's env. Checked with Stripe; on a test-mode site it also connects Stripe (checks, fixes after the human approves, test runs). The human sees it on the dashboard and can revoke it. Live and sk_test_ keys are refused (the error says what to do). Never ask the human to paste a key into the chat.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"secret_key": "<secret_key>"
},
"name": "store_stripe_test_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site id (site_…). Optional when the account has exactly one site in this mode; list_sites shows them. | |
| type | No | Optional: "stripe_test" (the REST body's type; "stripe" is accepted too). Always stored as a Stripe TEST key. | |
| secret_key | Yes | rk_test_… key. Stored encrypted; never returned. | |
| confirm_account_mismatch | No | Human said yes |