get_channel_id_by_name
Get a Slack channel's ID by providing its name, with or without the # prefix, to enable direct targeting in messaging and channel operations.
Instructions
Get the channel ID by channel name. The channel name can be with or without the # prefix.
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": {
"channel_name": "<channel_name>"
},
"name": "get_channel_id_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |