Add piece to agent account
stack_add_account_pieceAdd one piece (inbox, phone, wallet, browser, card, making or workspace) to an agent account that was opened without it, with the same options and the same charges as stack_open_account: an inbox needs a verified own domain when inbox.domain is given, and an inbox beyond the one included needs the wallet to hold its first month (INSUFFICIENT_BALANCE otherwise); a phone number waits for a qualifying top-up; a wallet needs wallet.agent_public_key. Requires an account admin; an agent session is refused. Not metered as an action. A repeated call with the same idempotency key and request returns the account; a piece the account already has (in any state) is a 409, and so is a closed account. Returns the account with each piece's state.
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": {
"account_id": "<account_id>",
"piece": "<piece>",
"idempotency_key": "<idempotency_key>"
},
"name": "stack_add_account_piece"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox | No | ||
| phone | No | ||
| piece | Yes | ||
| wallet | No | ||
| account_id | Yes | Agent account id (acct_*) | |
| idempotency_key | Yes | Stable key for this exact request. A repeated call with the same key and request returns the same account. |