How to Merge PDFs with Copilot
Merge PDF files in your IDE with Copilot and ToolRouter. Combine documents from URLs programmatically.
ToolPDFCopilot lets you trigger PDF merges directly from your development environment — combine test output PDFs, documentation files, or generated reports as part of a build or packaging step without leaving the editor.
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
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the PDF tool:
- In Copilot Chat: "Merge these PDF URLs into one file: [url1], [url2]"
- Copilot calls the merge skill and returns the output URL
- Ask: "Write code to download and save this merged PDF"
- Integrate the merge step into your build script
Example Prompt
Try this with Copilot using the PDF tool
Merge these report PDFs and return the URL of the combined file: [url1], [url2], [url3]. Then write Node.js code to download it.
Tips
- Useful for auto-assembling documentation packages from individually generated sections
- Ask Copilot to generate a merge step in your CI pipeline
- Combine with the extract_text skill to verify the merged content is correct