# hook-test

`station__devtools__hook-test` · external (needs EXECUTION_BACKEND_URL configured) · domain `devtools` · pv-relevance `non-pv`

Test a single hook with mock input.

> **Note:** This tool routes through an external execution backend. If `EXECUTION_BACKEND_URL` is unset on the server, calls return JSON-RPC error `-32603 "Tool execution backend not configured"`. Tools with `backend: native` execute in-process and are always callable.

## Agent metadata

- `idempotent`: unknown
- `read_only`: unknown
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `event_type` *string* (required) — Event type to simulate (e.g., "PostToolUse", "SessionStart").
- `hook_name` *string* (required) — Hook script filename (e.g., "test-failure-extractor.sh").
- `mock_input` *any* (required) — Mock JSON input to pipe to the hook's stdin.

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__devtools__hook-test",
    "arguments": {
      "event_type": "",
      "hook_name": "",
      "mock_input": ""
    }
  }
}
```

## Related

- [/tools](/tools) — all 3062 tools
- [/tools/devtools__hook-test](/tools/devtools__hook-test) — HTML page
- [/tools/devtools__hook-test/json](/tools/devtools__hook-test/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
