channels_move_chat
↪️ Move ONE chat (a DM or a group) of a channel this workspace owns into another workspace, for example a client's chat into that client's own workspace, where its agents answer it.
The chat's history goes with it; replies still go out through this workspace's account. The other workspace sees the chat in a channel named relay_name (default: this account's name). This workspace keeps seeing the chat and can still write into it. Queued work on the chat (drafts, reminders, agent jobs) is cancelled and listed in the answer. Calls stay here.
By default the other party of a DM is pinned to that workspace: their NEW chats with this channel are created there. A group pins nobody unless named in pin. Chats they already have stay; the answer lists them. Needs owner or admin in both workspaces. Undo with channels.unmove_chat; rename the channel later with channels.rename_relay.
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": {
"thread_id": "<thread_id>",
"target_workspace_id": "<target_workspace_id>"
},
"name": "channels_move_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | People whose NEW chats follow it, by their DM's channel_ref on this account, e.g. ['telegram:123456']. OMIT for the default (the other party of a DM, nobody for a group); [] pins nobody. | |
| thread_id | Yes | The chat to move (thread_id from search.threads or the inbox). | |
| relay_name | No | The channel's name as that workspace sees it, e.g. 'Team assistant'. OMIT to keep the current one (default: this account's name). | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| target_workspace_id | Yes | The workspace to move it to (workspace.list). |