create_agent_session
Create a scoped autonomous payment session bound to your agent. The user pre-funds a dedicated child Safe and installs an on-chain spending policy (single pinned recipient, per-execution and per-period caps) with a passkey in the Moneda app. After that you can call agent_execute_payment repeatedly within the policy — no per-payment approval. This call does NOT activate the session: it returns a counterfactual child Safe address and an activation deep link the user must open in the Moneda app. Poll get_agent_session until status is ACTIVE before executing.
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": {
"recipient": "<recipient>",
"currency": "<currency>",
"maxAmountPerExecution": "<maxAmountPerExecution>",
"maxAmountPerPeriod": "<maxAmountPerPeriod>",
"periodSeconds": "<periodSeconds>"
},
"name": "create_agent_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Stablecoin denomination for the session (USD or EUR). | |
| expiresAt | No | Optional ISO-8601 expiry. After this, executions are rejected and the session can no longer be used. | |
| recipient | Yes | The single crypto recipient address (0x…) pinned for this session. Phase 1 is crypto-to-crypto; every execution must go to this address. | |
| fundingAmount | No | Optional initial parent→child funding amount, in user-facing units. The child Safe balance is the hard ceiling on worst-case loss. | |
| periodSeconds | Yes | Length of the spending period in seconds (e.g. 86400 for a daily cap). | |
| maxAmountPerPeriod | Yes | Max total spend per rolling period, in user-facing units (e.g. '100.00'). Must be > 0. | |
| maxAmountPerExecution | Yes | Max per single payment, in user-facing units (e.g. '25.00'). Must be > 0 and ≤ maxAmountPerPeriod. |