channels_pins
📌 People pinned to another workspace on one of this workspace's channels: their NEW chats with that channel are created there (channels.move_chat pins the other party of a DM by default).
action='list' shows them; 'add' pins peer_refs to target_workspace_id (a person is pinned to one workspace per channel: pinning again moves the pin, and the answer says from where); 'remove' unpins peer_refs. Chats that already exist never move by a pin. Needs owner or admin (and, to add, owner or admin of the target).
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": {
"action": "<action>",
"channel_account_id": "<channel_account_id>"
},
"name": "channels_pins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | list, add or remove. | |
| peer_refs | No | For add / remove: people by their DM's channel_ref on this account, e.g. ['whatsapp:+15550001111']. OMIT for list. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| channel_account_id | Yes | The channel account (channels.list). | |
| target_workspace_id | No | For add: the workspace their new chats go to. OMIT otherwise. |