Test an on-prem handler on the user's runner
test_runner_handlerRun a SignalR (on-prem) block's C# handler with sample input on a runner started with --test, return its output, and iterate before baking the handler into a download.
Instructions
Pushes a SignalR (on-prem) block's C# handler + sample input to the user's runner — which must be running in TEST MODE (dotnet run -- --test) — and returns its output. The on-prem twin of test_block: use it to iterate on a handler before the user bakes it into a download. signalRBlockId is the block's guid (the signalRGuid from get_workspace_content). Omit handlerCode to run the saved handler. Times out if the runner isn't in test mode — if so, tell the user to start it with --test.
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": {
"signalRBlockId": "<signalRBlockId>"
},
"name": "test_runner_handler"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Sample value the handler reads as `input`. | |
| handlerCode | No | C# handler to test now. Omit to run the block's saved handler. | |
| signalRBlockId | Yes | The SignalR block's guid (its signalRGuid). |