gsep_before_tool
Runs as middleware before an AI agent executes tools, shell commands, database queries, or API calls, using C5 Action Firewall to block destructive actions.
Instructions
Middleware hook to run before an agent executes a tool, shell command, database query, filesystem action, or API call. Uses C5 Action Firewall to block destructive actions before execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | Exact shell/SQL/API action string, when applicable | |
| user_id | No | User identifier for audit context | |
| genome_id | No | Optional genome identifier for downstream correlation | |
| tool_name | Yes | Name of the tool/action the agent wants to call | |
| tool_input | No | Structured tool arguments, if available |