How to Upload Files to Slack with Copilot

Upload files to Slack from your IDE with Copilot and ToolRouter. Share build artifacts and reports programmatically.

Tool
Slack icon
Slack

Copilot uploads files to Slack as part of your development workflow — share a build artifact, a test report, or a documentation file to the right channel without leaving the editor, and generate the code to automate it in your CI pipeline.

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: "Upload this file to #engineering: [file URL]"
  2. Copilot uploads the file to the channel
  3. Ask: "Write TypeScript code to call upload_file as part of my CI pipeline"
  4. Integrate Slack file delivery into your build or deployment process

Example Prompt

Try this with Copilot using the Slack tool
Upload this test coverage report to #qa-team in Slack and write a TypeScript function that calls the upload_file skill programmatically: [file URL].

Tips

  • Automate test report delivery to Slack as the final step in your CI pipeline
  • Ask Copilot to write the upload function alongside a meaningful message that includes the build number
  • Add list_files checks to avoid uploading duplicate reports to the same channel