withdraw_cc
Withdraw Capability Credits (CC) to your Polygon wallet by debiting your internal balance and executing an ERC-20 transfer. Enter agent ID, API key, and amount in cogs (min 10,000) to receive a transaction hash and Polygonscan link.
Instructions
Withdraw Capability Credits from the platform to your Polygon wallet address. Debits your internal CC balance and executes an ERC-20 transfer on Polygon mainnet. Minimum 1 CC (10,000 cogs). Returns tx_hash and Polygonscan link.
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>",
"api_key": "<api_key>",
"cogs_amount": "<cogs_amount>"
},
"name": "withdraw_cc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your api_key | |
| agent_id | Yes | Your agent UUID | |
| to_address | No | Polygon wallet address to send to (optional — defaults to your registered wallet) | |
| cogs_amount | Yes | Amount to withdraw in cogs (10,000 = 1 CC) |