validate_routing_guard
Validates whether a direct Edit or Write tool call is permitted for the current routing context in Claude Code.
Instructions
Validate whether a direct Edit or Write tool call is allowed for the current routed task context. Intended for Claude Code PreToolUse hooks.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_routing_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory reported by the host hook | |
| skill | No | Optional skill name (e.g. 'auto-time') — matched against routing exceptions | |
| tool_name | No | Host tool name, for example Edit or Write | |
| target_file | No | Absolute path of the file about to be edited or written |