websocket_connect
Connects to a WebSocket endpoint, optionally sends messages, waits for responses, then closes. Use it to test WebSocket APIs stored in Insomnia.
Instructions
Connect to a WebSocket endpoint, optionally send messages, wait for responses, then close. Useful for testing WS APIs stored in Insomnia.
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": {
"url": "<url>"
},
"name": "websocket_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | WebSocket URL, e.g. wss://api.example.com/ws | |
| headers | No | ||
| messages | No | Messages to send after connecting | |
| confirmed | No | Set to true to confirm sending to an external URL after reviewing it | |
| timeout_ms | No | ||
| wait_for_messages | No | Number of messages to collect before closing |