sweep_agent
Sweep funds from agent back to operator balance. REQUIRES OPERATOR KEY.
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": {
"agent_id": "<agent_id>",
"amount_sats": "<amount_sats>"
},
"name": "sweep_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent ID to sweep funds from | |
| amount_sats | Yes | Amount in sats, or the string "all" to sweep the full balance |