How to Find Slack Users with Copilot

Find Slack users from your IDE with Copilot and ToolRouter. Look up workspace members without switching apps.

Tool
Slack icon
Slack

Copilot finds Slack users without requiring you to leave your development environment — look up a colleague's handle to send a notification, find the workspace admin to ask a question, or generate a list of users for a routing script.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Slack tool:

  1. In Copilot Chat: "Find the Slack user for [name]"
  2. Copilot returns the user profile
  3. Ask: "Write TypeScript code that finds a user by email and returns their Slack ID"
  4. Integrate user lookup into your Slack notification logic

Example Prompt

Try this with Copilot using the Slack tool
Find the Slack user for "alice@company.com" and write a TypeScript function that calls find_user by email and returns the user ID for use in direct message routing.

Tips

  • Use user lookup to build dynamic routing in your notification system — find the right person by role
  • Ask Copilot to write the user lookup alongside the send_message integration in one session
  • Fetch the user ID rather than the handle when building programmatic integrations — IDs are more stable