Disconnect an account
disconnect_accountDisconnect a connected account of this organization, as the Channels page's Disconnect does: its token is revoked, its scheduled, queued and pending-approval posts are cancelled (failed, and put back if the account is connected again), and it is removed here and from every organization it was shared into. Returns how many posts were cancelled. Only accounts this organization owns: one merely shared into it is refused. The id is from list_accounts. Needs the accounts permission.
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": {
"accountId": "<accountId>"
},
"name": "disconnect_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | ||
| organizationId | No | Which organization to act in: an id from list_organizations. Leave out for this connection's default organization. |