read_guard
Acts as a PreToolUse hook for Claude Code Read and Bash calls, guarding file access and command execution before they run.
Instructions
Hook only, do not call: Claude Code's PreToolUse hooks on Read and Bash call it.
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": "read_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Limit. | |
| offset | No | Offset. | |
| command | No | Bash command. | |
| file_path | No | File. |