agent_execute_payment
Execute a payment to an ACTIVE agent session's pinned recipient, within its on-chain spending policy — no per-payment user approval. The recipient and amount must satisfy the session's allowlist and per-execution / per-period caps, and the child Safe must hold enough balance. For safe retries pass a stable idempotencyKey: retrying with the SAME key returns the original transaction instead of double-spending. WITHOUT an idempotencyKey, retries are only de-duplicated within a ~30s window — a delayed retry (e.g. after a bundler/network timeout) could send a second payment. Call get_agent_session first to confirm the session is ACTIVE and check remainingPeriodCap.
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": {
"sessionId": "<sessionId>",
"recipient": "<recipient>",
"amount": "<amount>",
"currency": "<currency>"
},
"name": "agent_execute_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to send, in user-facing units (e.g. '10.00'). Must satisfy the per-execution and remaining per-period caps. | |
| currency | Yes | Stablecoin denomination — must match the session token. | |
| recipient | Yes | The crypto recipient address (0x…). Must match the session's pinned recipient. | |
| sessionId | Yes | The agent session id returned by create_agent_session. | |
| idempotencyKey | No | Optional stable key for safe retries. Reuse the SAME key when retrying a payment you're unsure completed (e.g. after a timeout) — the original transaction is returned rather than sending twice. Use a FRESH key for each new payment. If omitted, retries are only de-duplicated within a ~30s window. |