Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Webhook Copilot TriggerNew to Visual Studio Code? Get it now.
Webhook Copilot Trigger

Webhook Copilot Trigger

John Nonso

|
2 installs
| (0) | Free
HTTP webhook server that triggers GitHub Copilot Chat from external tools (DevConsole, sticky notes, logs)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Webhook Copilot Trigger — VS Code Extension

HTTP webhook server that triggers GitHub Copilot Chat from external tools like DevConsole, sticky notes, and log panels.

Features

  • HTTP Webhook Server (port 9090) — accepts POST /webhook with { prompt, context?, images? }
  • WebSocket Terminal Stream (port 9091) — streams terminal output to connected clients
  • @webhook Chat Participant — direct access to Copilot's language model
  • Image/Vision Support — attach screenshots for multimodal analysis
  • Queue System — processes tasks sequentially with status tracking

Quick Start (Local Development)

cd /Users/chinonsojohn/ripe-console/webhook-copilot-extension
npm install
npm run compile

Then press F5 in VS Code to launch the Extension Host.

Commands

Command Description
Webhook Copilot: Start Server Start HTTP webhook server
Webhook Copilot: Stop Server Stop HTTP webhook server
Webhook Copilot: Restart Server Restart HTTP webhook server
Webhook Copilot: Start Terminal Stream Start WebSocket terminal server
Webhook Copilot: Stop Terminal Stream Stop WebSocket terminal server
Webhook Copilot: Terminal Stream Status Show terminal stream status

API Endpoints

Endpoint Method Description
/health GET Health check with workspace status
/test POST Echo test (validates connection)
/webhook POST Main webhook endpoint
/webhook/:requestId/status GET Poll request status
/queue GET Get current queue status

Webhook Payload

{
  "prompt": "Explain this error and suggest a fix",
  "context": {
    "log": "TypeError: Cannot read property 'x' of undefined",
    "file": "src/app.ts",
    "line": 42,
    "source": "logs"
  },
  "images": [
    {
      "data": "<base64>",
      "mimeType": "image/png",
      "description": "Screenshot of the error"
    }
  ]
}

Integration with DevConsole

The extension integrates with the DevConsole Chrome extension's Code Actions Panel:

  1. DevConsole sends webhook to http://localhost:9090/webhook
  2. Extension forwards prompt to Copilot Chat
  3. DevConsole tracks status via requestId polling
  4. User sees Copilot response in VS Code

The webhookService.ts client and codeActions.ts store handle:

  • Connection health checks (GET /health)
  • Queue position tracking
  • Retry on failure
  • Clipboard fallback when VS Code unavailable

Settings

Setting Default Description
webhookCopilot.serverPort 9090 Webhook server port
webhookCopilot.autoStart true Auto-start on VS Code launch
webhookCopilot.requireApproval true Require approval for actions
webhookCopilot.terminalStreamPort 9091 Terminal stream port
webhookCopilot.terminalStreamAutoStart true Auto-start terminal stream

Publishing to VS Code Marketplace

Prerequisites

  1. Azure DevOps Account — Create one at https://dev.azure.com
  2. Personal Access Token (PAT) — Create with "Marketplace (Manage)" scope

Create Personal Access Token

  1. Go to https://dev.azure.com
  2. Click your profile → Personal access tokens
  3. Click New Token
  4. Set:
    • Name: vsce-publish
    • Organization: All accessible organizations
    • Scopes: Marketplace → Manage
  5. Copy the token (you won't see it again)

Create Publisher

npx vsce create-publisher chinonsojohn
# Enter your PAT when prompted

Or create at https://marketplace.visualstudio.com/manage

Package and Publish

cd webhook-copilot-extension

# Install dependencies
npm install

# Package as .vsix (for testing)
npm run package
# Creates: webhook-copilot-trigger-1.0.0.vsix

# Publish to marketplace
npm run publish
# Or: npx vsce publish -p <YOUR_PAT>

Install from VSIX (Local Testing)

  1. In VS Code: Extensions → ... → Install from VSIX
  2. Select webhook-copilot-trigger-1.0.0.vsix

Troubleshooting

Issue Solution
Port in use Change webhookCopilot.serverPort in settings
No workspace error Open a folder in VS Code before sending webhooks
Chat not responding Check Copilot is signed in and working
Terminal stream unavailable Requires VS Code Insiders or proposed APIs

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft