add_to_collection
Group a connected account into a collection (a named set of accounts, e.g. "acme" spanning its X + Instagram). CREATES the collection if the name is new, so this is also how you create one. Then schedule_post can post to the whole group via its collection field. Pass accountId (an integration id from list_integrations) and collection (the group name). Call list_integrations to see current groupings (each account shows its collection). To ungroup an account, pass an empty collection name. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.
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>",
"collection": "<collection>"
},
"name": "add_to_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Integration id of the account to group (from list_integrations). | |
| collection | Yes | Collection name. Created if it does not exist yet. Empty string ungroups the account. |